-
public class ByteBufferUtilsUtility class for ByteBuffers
-
-
Method Summary
Modifier and Type Method Description static inttransferByteBuffer(ByteBuffer source, ByteBuffer dest)Transfer from one ByteBuffer to another ByteBuffer static ByteBuffergetEmptyByteBuffer()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
-
-
-
-