G
gkrasnow
I am working on a system where we continually jump between native code
and java code. I have a place where I use NewDirectByteBuffer in the
native code to create a data buffer I can use to pass data back and
forth from java.
I am finding that under certain circumstances I call
NewDirectByteBuffer() with an address and size. I can then call
GetDirectBufferCapacity() and see that the size is indeed the size I
used in my NewDirectByteBuffer() call. However, when I then pass the
jobject across the JNI boundary back into java and I look at the
capacity() on the java.nio.ByteBuffer, the capacity reported is
smaller then what I requested. Has anyone else run into this issue?
Thanks.
- Greg
and java code. I have a place where I use NewDirectByteBuffer in the
native code to create a data buffer I can use to pass data back and
forth from java.
I am finding that under certain circumstances I call
NewDirectByteBuffer() with an address and size. I can then call
GetDirectBufferCapacity() and see that the size is indeed the size I
used in my NewDirectByteBuffer() call. However, when I then pass the
jobject across the JNI boundary back into java and I look at the
capacity() on the java.nio.ByteBuffer, the capacity reported is
smaller then what I requested. Has anyone else run into this issue?
Thanks.
- Greg