18 void setVM(JavaVM* vm);
20 JNIEnv*
getEnv(
bool* shouldDetach);
jclass getClass(JNIEnv *env, const std::string &name)
void maybeThrowException(JNIEnv *env, bool shouldDetach)
void releaseEnv(bool shouldDetach)
JNIEnv * getEnv(bool *shouldDetach)
jmethodID getMethodID(JNIEnv *env, jclass clazz, const std::string &name, const std::string &signature)
std::unique_ptr< folly::IOBuf > Buf
jbyteArray createByteArray(JNIEnv *env, folly::ByteRange byteRange)