proxygen
|
Functions | |
void | setVM (JavaVM *jvm) |
JNIEnv * | getEnv (bool *shouldDetach) |
void | releaseEnv (bool shouldDetach) |
jclass | getClass (JNIEnv *env, const std::string &name) |
jmethodID | getMethodID (JNIEnv *env, jclass clazz, const std::string &name, const std::string &signature) |
void | maybeThrowException (JNIEnv *env, bool shouldDetach) |
jbyteArray | createByteArray (JNIEnv *env, folly::ByteRange byteRange) |
jbyteArray | createByteArray (JNIEnv *env, Buf buf) |
jbyteArray fizz::jni::createByteArray | ( | JNIEnv * | env, |
folly::ByteRange | byteRange | ||
) |
Definition at line 72 of file JniUtils.cpp.
References folly::Range< Iter >::data(), and folly::Range< Iter >::size().
Referenced by createByteArray(), fizz::JavaCryptoPeerCert::JavaCryptoPeerCert(), and fizz::JavaCryptoPeerCert::verify().
jbyteArray fizz::jni::createByteArray | ( | JNIEnv * | env, |
Buf | buf | ||
) |
Definition at line 82 of file JniUtils.cpp.
References createByteArray().
jclass fizz::jni::getClass | ( | JNIEnv * | env, |
const std::string & | name | ||
) |
JNIEnv * fizz::jni::getEnv | ( | bool * | shouldDetach | ) |
Definition at line 23 of file JniUtils.cpp.
Referenced by fizz::JavaCryptoPeerCert::getIdentity(), fizz::JavaCryptoPeerCert::JavaCryptoPeerCert(), and fizz::JavaCryptoPeerCert::verify().
jmethodID fizz::jni::getMethodID | ( | JNIEnv * | env, |
jclass | clazz, | ||
const std::string & | name, | ||
const std::string & | signature | ||
) |
void fizz::jni::maybeThrowException | ( | JNIEnv * | env, |
bool | shouldDetach | ||
) |
Definition at line 63 of file JniUtils.cpp.
References releaseEnv().
Referenced by fizz::JavaCryptoPeerCert::getIdentity(), fizz::JavaCryptoPeerCert::JavaCryptoPeerCert(), and fizz::JavaCryptoPeerCert::verify().
void fizz::jni::releaseEnv | ( | bool | shouldDetach | ) |
Definition at line 40 of file JniUtils.cpp.
Referenced by fizz::JavaCryptoPeerCert::getIdentity(), fizz::JavaCryptoPeerCert::JavaCryptoPeerCert(), maybeThrowException(), and fizz::JavaCryptoPeerCert::verify().
void fizz::jni::setVM | ( | JavaVM * | jvm | ) |