public class ByteBufferUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
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()