Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
append(ByteBuffer dst,
ByteBuffer src)
A facade for
append(ByteBuffer, ByteBuffer, int) . |
static ByteBuffer |
append(ByteBuffer dst,
ByteBuffer src,
int shift)
Appends the contents of one buffer onto the end of another.
|
static ByteBuffer |
resize(ByteBuffer src,
int size)
A facade for
append(ByteBuffer, ByteBuffer, int) . |
public static final ByteBuffer append(ByteBuffer dst, ByteBuffer src, int shift)
dst
- the destination ByteBuffer
.src
- the source ByteBuffer
, which must be in the ready-to-read mode.shift
- the power of two overallocation factor.ByteBuffer
, or a copy with capacity equal to the overallocation factor times the
total amount of data.public static final ByteBuffer append(ByteBuffer dst, ByteBuffer src)
append(ByteBuffer, ByteBuffer, int)
.public static final ByteBuffer resize(ByteBuffer src, int size)
append(ByteBuffer, ByteBuffer, int)
.