Lines Matching refs:env
23 static int GetBufferPosition(JNIEnv* env, jobject nioBuffer) { in GetBufferPosition() argument
24 return(*env)->GetIntField(env, nioBuffer, JniConstants_NioBuffer_position(env)); in GetBufferPosition()
27 static int GetBufferLimit(JNIEnv* env, jobject nioBuffer) { in GetBufferLimit() argument
28 return(*env)->GetIntField(env, nioBuffer, JniConstants_NioBuffer_limit(env)); in GetBufferLimit()
31 static int GetBufferElementSizeShift(JNIEnv* env, jobject nioBuffer) { in GetBufferElementSizeShift() argument
32 return(*env)->GetIntField(env, nioBuffer, JniConstants_NioBuffer__elementSizeShift(env)); in GetBufferElementSizeShift()
35 jarray jniGetNioBufferBaseArray(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArray() argument
36 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArray()
37 jmethodID getBaseArrayMethod = JniConstants_NIOAccess_getBaseArray(env); in jniGetNioBufferBaseArray()
38 jobject object = (*env)->CallStaticObjectMethod(env, in jniGetNioBufferBaseArray()
43 int jniGetNioBufferBaseArrayOffset(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferBaseArrayOffset() argument
44 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArrayOffset()
45 jmethodID getBaseArrayOffsetMethod = JniConstants_NIOAccess_getBaseArrayOffset(env); in jniGetNioBufferBaseArrayOffset()
46 return (*env)->CallStaticIntMethod(env, nioAccessClass, getBaseArrayOffsetMethod, nioBuffer); in jniGetNioBufferBaseArrayOffset()
49 jlong jniGetNioBufferPointer(JNIEnv* env, jobject nioBuffer) { in jniGetNioBufferPointer() argument
50 jlong baseAddress = (*env)->GetLongField(env, nioBuffer, JniConstants_NioBuffer_address(env)); in jniGetNioBufferPointer()
52 const int position = GetBufferPosition(env, nioBuffer); in jniGetNioBufferPointer()
53 const int shift = GetBufferElementSizeShift(env, nioBuffer); in jniGetNioBufferPointer()
59 jlong jniGetNioBufferFields(JNIEnv* env, jobject nioBuffer, in jniGetNioBufferFields() argument
61 *position = GetBufferPosition(env, nioBuffer); in jniGetNioBufferFields()
62 *limit = GetBufferLimit(env, nioBuffer); in jniGetNioBufferFields()
63 *elementSizeShift = GetBufferElementSizeShift(env, nioBuffer); in jniGetNioBufferFields()
64 return (*env)->GetLongField(env, nioBuffer, JniConstants_NioBuffer_address(env)); in jniGetNioBufferFields()