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