JNI - native method with ByteBuffer parameter
Posted
by Ajan
on Stack Overflow
See other posts from Stack Overflow
or by Ajan
Published on 2010-04-20T09:06:38Z
Indexed on
2010/04/20
9:33 UTC
Read the original article
Hit count: 188
I've got a method:
public native void doSomething(ByteBuffer in, ByteBuffer out);
Generated by javah C/C++ header of this method is:
JNIEXPORT void JNICALL Java__MyClass_doSomething (JNIEnv *, jobject, jobject, jobject, jint, jint);
How can I get a data array from jobject (that is a ByteBuffer instance) ?
© Stack Overflow or respective owner