|
YAACC - UPNP Client and Server
|
A read-only view of one FlatBuffers table (the accessors of the library are protected; generated code subclasses Table for the same reason).
More...


Public Member Functions | |
| boolean | has (int slot) |
| True if the field is in the buffer. | |
| String | string (int slot, int maxBytes) |
| A text field. | |
| FbTable | table (int slot) |
| Integer | u8 (int slot) |
An unsigned byte (a ubyte, an enum or the type of a union). | |
| Long | u32 (int slot) |
| Boolean | bool (int slot) |
| Float | f32 (int slot) |
| Long | timeMicros (int slot) |
The Time struct of the protocol: microseconds as an unsigned 64 bit number; null if absent. | |
| long[] | u32Pair (int slot) |
The two unsigned 32 bit numbers of an inline struct such as VideoResolution (width, height), or null if the field is absent. | |
| int | vectorLength (int slot) |
| FbTable | tableAt (int slot, int index) |
| String | stringAt (int slot, int index, int maxBytes) |
Static Public Attributes | |
| static final int | BUDGET_BYTES = 256 * 1024 |
| The characters of strings that one buffer may make the reader decode, in bytes (offsets may share one string many times). | |
A read-only view of one FlatBuffers table (the accessors of the library are protected; generated code subclasses Table for the same reason).
Slots are the vtable offsets of the schema (4 for the first field, 6 for the second, ...). Every accessor returns null (or 0 for a length) for a field that is not in the buffer. A buffer that is cut or points outside itself makes the accessors throw IndexOutOfBoundsException or IllegalArgumentException; the caller (V4Reader) turns that into one error. The length of a vector is checked against the buffer, so a hostile length can not make a loop run.
| String de.yaacc.fcast.protocol.v4.FbTable.string | ( | int | slot, |
| int | maxBytes ) |
A text field.
The length is checked before the text is decoded: it may not be over maxBytes, and all texts of one buffer together may not be over BUDGET_BYTES (a buffer can point many fields at one long string).
| Long de.yaacc.fcast.protocol.v4.FbTable.timeMicros | ( | int | slot | ) |
The Time struct of the protocol: microseconds as an unsigned 64 bit number; null if absent.
A value over 2^63 is returned negative: callers treat it as no time.