-
Returns an MBB which is a duplicate version of this MBB.
MultiByteBuff.limit(int limit)
Marks the limit of this MBB.
Marks the current position of the MBB
Jumps back the current position of this MBB by specified length.
Sets this MBB's position to the given value.
MultiByteBuff.put(byte b)
Writes a byte to this MBB at the current position and increments the position
MultiByteBuff.put(byte[] src)
Copies from the given byte[] to this MBB
MultiByteBuff.put(byte[] src,
int offset,
int length)
Copies from the given byte[] to this MBB.
MultiByteBuff.put(int index,
byte b)
Writes a byte to this MBB at the given index and won't affect the position of any of the
buffers.
MultiByteBuff.put(int destOffset,
ByteBuff src,
int srcOffset,
int length)
Copies from a src BB to this MBB.
Writes an int to this MBB at its current position.
Writes a long to this MBB at its current position.
Similar to
ByteBuffer
.reset(), ensures that this MBB is reset back to last marked
position.
Rewinds this MBB and the position is set to 0
MultiByteBuff.skip(int length)
Jumps the current position of this MBB by specified length.
Returns an MBB which is a sliced version of this MBB.