diff options
Diffstat (limited to 'src/native/common')
-rw-r--r-- | src/native/common/Platform.c (renamed from src/native/common/CPU.c) | 0 | ||||
-rw-r--r-- | src/native/common/PointerBuffer.c | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/native/common/CPU.c b/src/native/common/Platform.c index 0cc7adc..0cc7adc 100644 --- a/src/native/common/CPU.c +++ b/src/native/common/Platform.c diff --git a/src/native/common/PointerBuffer.c b/src/native/common/PointerBuffer.c new file mode 100644 index 0000000..9736edc --- /dev/null +++ b/src/native/common/PointerBuffer.c @@ -0,0 +1,10 @@ + +#include <jni.h> + +#include <assert.h> + +JNIEXPORT jlong JNICALL +Java_com_jogamp_gluegen_runtime_PointerBuffer_getDirectBufferAddressImpl(JNIEnv *env, jclass _unused, jobject directBuffer) { + return ( NULL != directBuffer ) ? ( jlong) (*env)->GetDirectBufferAddress(env, directBuffer) : 0L ; +} + |