public interface ReadBuf
| Modifier and Type | Method and Description |
|---|---|
byte[] |
data()
Expose com.google.flatbuffers.ReadBuf as an array of bytes.
|
byte |
get(int index)
Read a byte from data.
|
boolean |
getBoolean(int index)
Read boolean from data.
|
double |
getDouble(int index)
Read a 64-bit float from data.
|
float |
getFloat(int index)
Read a 32-bit float from data.
|
int |
getInt(int index)
Read a 32-bit int from data.
|
long |
getLong(int index)
Read a 64-bit long from data.
|
short |
getShort(int index)
Read a short from data.
|
String |
getString(int start,
int size)
Read an UTF-8 string from data.
|
int |
limit()
Defines the size of the message in the buffer.
|
byte[] data()
byte get(int index)
index - position of the element in com.google.flatbuffers.ReadBufboolean getBoolean(int index)
index - position of the element in com.google.flatbuffers.ReadBufdouble getDouble(int index)
index - position of the element in com.google.flatbuffers.ReadBuffloat getFloat(int index)
index - position of the element in com.google.flatbuffers.ReadBufint getInt(int index)
index - position of the element in com.google.flatbuffers.ReadBuflong getLong(int index)
index - position of the element in com.google.flatbuffers.ReadBufshort getShort(int index)
index - position of the element in com.google.flatbuffers.ReadBufString getString(int start, int size)
start - initial element of the stringsize - size of the string in bytes.Stringint limit()
limit() -1.