public class ByteBufferUtil extends Object
| Constructor and Description |
|---|
ByteBufferUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getSizePrefix(ByteBuffer bb)
Extract the size prefix from a `ByteBuffer`.
|
static ByteBuffer |
removeSizePrefix(ByteBuffer bb)
Create a duplicate of a size-prefixed `ByteBuffer` that has its position
advanced just past the size prefix.
|
public static int getSizePrefix(ByteBuffer bb)
bb - a size-prefixed bufferpublic static ByteBuffer removeSizePrefix(ByteBuffer bb)
bb - a size-prefixed bufferCopyright © 2020. All rights reserved.