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.

On Tue, May 22, 2018 at 5:55 AM Emmanuel Lécharny <[email protected]>
wrote:

>
>
> Le 22/05/2018 à 11:17, rexxar a écrit :
> > Hi,Emmanuel
> >
> >    Thank you very much for your Explanation and Suggest。But I still have
> > doubts about this :
> >
> > the IoBuffer.getHexDump() method do move the position while dumping the
> > content,but it
> >
> > recover it finally。It seems no other thread will operate the IoBuffer
> during
> > this period,right?
>
> I was wrong, the getHexDump() method does not modify the buffer (if it
> does, its a bug and need to be fixed).
>
> I still strongly suggest you duplicate the buffer before doing anything
> with it, including dumping its content.
>
> --
> Emmanuel Lecharny
>
> Symas.com
> directory.apache.org
>
>

Reply via email to