public class ByteBufferUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.nio.ByteBuffer |
getEmptyByteBuffer() |
Get a ByteBuffer with zero capacity
|
static int |
transferByteBuffer(java.nio.ByteBuffer source,
java.nio.ByteBuffer dest) |
Transfer from one ByteBuffer to another ByteBuffer
|
public static int transferByteBuffer(java.nio.ByteBuffer source,
java.nio.ByteBuffer dest)
source - the ByteBuffer to copy fromdest - the ByteBuffer to copy topublic static java.nio.ByteBuffer getEmptyByteBuffer()