Stefan Gmeiner wrote:
I recognised that ByteBuffer from the PooledByteBufferAllocator are
not always initialized with 0. If a buffer gets reused the old value
is still present. In my understanding it would be necessary to clear
previous data if a buffer is reused.
I don't think this is necessary. A 0 is also a valid data, so I see no
difference between a buffer not being zero'ed and a buffer containing
only 0.
It's up to the user to be careful when dealing with a buffer not to go
beyond the limits.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org