INNER CODE UNIT · C++

current

tiann/epic · library/src/main/cpp/art.cpp:32

    auto current = reinterpret_cast<T*>(reinterpret_cast<char*>(hay) + i);
    if (*current == needle) {
      return i;
    }
  }
  return -1;
}

void ArtHelper::init(JNIEnv* env, int api)
{
  ArtHelper::api = api;
  JavaVM* javaVM;
  env->GetJavaVM(&javaVM);
  JavaVMExt* javaVMExt = (JavaVMExt*)javaVM;

  void* runtime = javaVMExt->runtime;
  if (runtime == nullptr) {
    return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…