Class that collects utility functions around ByteBuffer
.
More...
Class that collects utility functions around ByteBuffer
.
|
static int | getSizePrefix (ByteBuffer bb) |
| Extract the size prefix from a ByteBuffer . More...
|
|
static ByteBuffer | removeSizePrefix (ByteBuffer bb) |
| Create a duplicate of a size-prefixed ByteBuffer that has its position advanced just past the size prefix. More...
|
|
◆ getSizePrefix()
static int com.google.flatbuffers.ByteBufferUtil.getSizePrefix |
( |
ByteBuffer |
bb | ) |
|
|
inlinestatic |
Extract the size prefix from a ByteBuffer
.
- Parameters
-
- Returns
- the size prefix
◆ removeSizePrefix()
static ByteBuffer com.google.flatbuffers.ByteBufferUtil.removeSizePrefix |
( |
ByteBuffer |
bb | ) |
|
|
inlinestatic |
Create a duplicate of a size-prefixed ByteBuffer
that has its position advanced just past the size prefix.
- Parameters
-
- Returns
- a new buffer on the same underlying data that has skipped the size prefix
The documentation for this class was generated from the following file: