Le 22/05/2018 à 14:02, Jonathan Valliere a écrit :
> Duplicating the buffer most likely temporarily moves the position also.  If
> you submit a buffer to be written, don’t do anything with it until after it
> it written.

ByteBuffer.duplicate() - which is called by IoBuffer.duplicate() -
creates a new Direct/HeapBuffer based o the byte[] and all the
associated flags (limit, capacity, position makrk). The original buffer
isn't altered.

In other words : it's safe.

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org

Attachment: pEpkey.asc
Description: application/pgp-keys

Reply via email to