-
public class ByteBufferUtils
Utility class for ByteBuffers
-
-
Method Summary
Modifier and Type Method Description static int
transferByteBuffer(ByteBuffer source, ByteBuffer dest)
Transfer from one ByteBuffer to another ByteBuffer static ByteBuffer
getEmptyByteBuffer()
Get a ByteBuffer with zero capacity -
-
Method Detail
-
transferByteBuffer
static int transferByteBuffer(ByteBuffer source, ByteBuffer dest)
Transfer from one ByteBuffer to another ByteBuffer
- Parameters:
source
- the ByteBuffer to copy fromdest
- the ByteBuffer to copy to
-
getEmptyByteBuffer
static ByteBuffer getEmptyByteBuffer()
Get a ByteBuffer with zero capacity
-
-
-
-