Le 1/11/13 9:09 AM, Jeff MAURY a écrit : > Two remarks: > > 1) if the user buffer is a DirectBuffer, I suppose you use it instead of > your alllocated DirectBuffer Yes.
> 2) why don't you use always your DirectBuffer when you need to write on the > channel ? This is what is done. Either i use the pre-allocated directBuffer, or I allocate one and copy the HeapBuffer into it. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com