blob: a7b8cb059a0c1b5eff5073bb8f32609e88cc7620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <jni.h>
#include <assert.h>
#include "com_jogamp_common_nio_PointerBuffer.h"
JNIEXPORT jlong JNICALL
Java_com_jogamp_common_nio_PointerBuffer_getDirectBufferAddressImpl(JNIEnv *env, jclass _unused, jobject directBuffer) {
return ( NULL != directBuffer ) ? ( jlong) (*env)->GetDirectBufferAddress(env, directBuffer) : 0L ;
}
|