zhang Jackie a écrit :
hi
I am using directbuffer and JNI to build a high speed network
library. But When I use the directbuffer, I found some directbuffers
have the same memory address(got by GetDirectBufferAddress method). I
think the memory allocation of directbuffer is not reasonable enough.
Can someoen give me some advice, Thanks
Best Regards!
I don't understand the whole question, but buffers can share the same
content.
Take a look to:
http://download.java.net/jdk7/docs/api/java/nio/ByteBuffer.html#duplicate()
Rémi