Bug 1286663 - Add JNI wrapper class for ByteBuffer; r=snorp

Add a wrapper class for ByteBuffer and its associated calls in JNI.
This commit is contained in:
Jim Chen
2016-07-21 13:49:04 -04:00
parent 1a00fe7507
commit 3a4aad7d7e
3 changed files with 42 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ template<> const char ObjectBase<TypedObject<jlongArray>, jlongArray>::name[] =
template<> const char ObjectBase<TypedObject<jfloatArray>, jfloatArray>::name[] = "[F";
template<> const char ObjectBase<TypedObject<jdoubleArray>, jdoubleArray>::name[] = "[D";
template<> const char ObjectBase<TypedObject<jobjectArray>, jobjectArray>::name[] = "[Ljava/lang/Object;";
template<> const char ObjectBase<ByteBuffer, jobject>::name[] = "java/nio/ByteBuffer";
JNIEnv* sGeckoThreadEnv;