summaryrefslogtreecommitdiffstats
path: root/src/native/common/PointerBuffer.c
blob: 05e003b5ad65d60a2e65ec56f1d78397c64c4874 (plain)
1
2
3
4
5
6
7
8
9
10

#include <jni.h>

#include <assert.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 ; 
}