two directbuffer have same address?
Rémi Forax
forax at univ-mlv.fr
Fri Dec 21 08:40:47 UTC 2007
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
More information about the core-libs-dev
mailing list