J
jespersahner
Hi!
I am reading from a ByteBuffer (e.g. of size 10.000 bytes). When a part
of the buffer is read (say 1.000 bytes) I would like to move the
remaining part of the buffer (9.000 bytes), to the start of the buffer
and then fill up the rest of the buffer (from position 9.001 to
10.000).
Which is the easiest way to move the remaining bytes to the start of
the buffer?
Regards,
Jesper
I am reading from a ByteBuffer (e.g. of size 10.000 bytes). When a part
of the buffer is read (say 1.000 bytes) I would like to move the
remaining part of the buffer (9.000 bytes), to the start of the buffer
and then fill up the rest of the buffer (from position 9.001 to
10.000).
Which is the easiest way to move the remaining bytes to the start of
the buffer?
Regards,
Jesper