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

Helper type for accessing vector of signed or unsigned 8-bit values. More...

Inheritance diagram for com.google.flatbuffers.ByteVector:

Detailed Description

Helper type for accessing vector of signed or unsigned 8-bit values.

Public Member Functions

ByteVector __assign (int vector, ByteBuffer bb)
 Assigns vector access object to vector data. More...
 
byte get (int j)
 Reads the byte at the given index. More...
 
int getAsUnsigned (int j)
 Reads the byte at the given index, zero-extends it to type int, and returns the result, which is therefore in the range 0 through 255. More...
 

Member Function Documentation

◆ __assign()

ByteVector com.google.flatbuffers.ByteVector.__assign ( int  vector,
ByteBuffer  bb 
)
inline

Assigns vector access object to vector data.

Parameters
vectorStart data of a vector.
bbTable's ByteBuffer.
Returns
Returns current vector access object assigned to vector data whose offset is stored at vector.

◆ get()

byte com.google.flatbuffers.ByteVector.get ( int  j)
inline

Reads the byte at the given index.

Parameters
jThe index from which the byte will be read.
Returns
the 8-bit value at the given index.

◆ getAsUnsigned()

int com.google.flatbuffers.ByteVector.getAsUnsigned ( int  j)
inline

Reads the byte at the given index, zero-extends it to type int, and returns the result, which is therefore in the range 0 through 255.

Parameters
jThe index from which the byte will be read.
Returns
the unsigned 8-bit at the given index.

The documentation for this class was generated from the following file: