This class can be used to parse FlexBuffer messages.
For generating FlexBuffer messages, use FlexBuffersBuilder
.
Example of usage:
ReadBuf bb = ... // load message from file or network
FlexBuffers.Reference r = FlexBuffers.getRoot(bb); // Reads the root element
FlexBuffers.Map map = r.asMap(); // We assumed root object is a map
System.out.println(map.get("name").asString()); // prints element with key "name"
|
FLATBUFFERS_INTERNAL static final int | FBT_BLOB = 25 |
| Represent a blob type.
|
|
static final int | FBT_BOOL = 26 |
| Represent a boolean type.
|
|
static final int | FBT_FLOAT = 3 |
| Represent a float type.
|
|
static final int | FBT_INDIRECT_FLOAT = 8 |
| Represent a indirect float type.
|
|
static final int | FBT_INDIRECT_INT = 6 |
| Represent a indirect signed integer type.
|
|
static final int | FBT_INDIRECT_UINT = 7 |
| Represent a indirect unsigned integer type.
|
|
static final int | FBT_INT = 1 |
| Represent a signed integer type.
|
|
static final int | FBT_KEY = 4 |
| Represent a key to a map type.
|
|
static final int | FBT_MAP = 9 |
| Represent a map type.
|
|
static final int | FBT_NULL = 0 |
| Represent a null type.
|
|
static final int | FBT_STRING = 5 |
| Represent a string type.
|
|
static final int | FBT_UINT = 2 |
| Represent a unsigned type.
|
|
static final int | FBT_VECTOR = 10 |
| Represent a vector type.
|
|
static final int | FBT_VECTOR_BOOL = 36 |
| Represent a vector of booleans type.
|
|
static final int | FBT_VECTOR_FLOAT = 13 |
| Represent a vector of floats type.
|
|
static final int | FBT_VECTOR_INT = 11 |
| Represent a vector of signed integers type.
|
|
static final int | FBT_VECTOR_KEY = 14 |
| Represent a vector of keys type.
|
|
static final int | FBT_VECTOR_STRING_DEPRECATED = 15 |
| Represent a vector of strings type.
|
|
static final int | FBT_VECTOR_UINT = 12 |
| Represent a vector of unsigned integers type.
|
|