FlatBuffers
An open source project by FPL.
com.google.flatbuffers.ByteBufferUtil Class Reference

Class that collects utility functions around ByteBuffer. More...

Detailed Description

Class that collects utility functions around ByteBuffer.

Static Public Member Functions

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...
 

Member Function Documentation

◆ getSizePrefix()

static int com.google.flatbuffers.ByteBufferUtil.getSizePrefix ( ByteBuffer  bb)
inlinestatic

Extract the size prefix from a ByteBuffer.

Parameters
bba size-prefixed buffer
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
bba size-prefixed buffer
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: