zlmdb.flatbuffers.table¶
Classes¶
Table wraps a byte slice and provides read access to its data. |
Module Contents¶
- class Table(buf, pos)[source]¶
Bases:
objectTable wraps a byte slice and provides read access to its data.
The variable Pos indicates the root of the FlatBuffers object therein.
- GetVOffsetTSlot(slot, d)[source]¶
GetVOffsetTSlot retrieves the VOffsetT that the given vtable location points to. If the vtable value is zero, the default value d will be returned.
- GetVectorAsNumpy(flags, off)[source]¶
GetVectorAsNumpy returns the vector that starts at Vector(off) as a numpy array with the type specified by flags. The array is a view into Bytes, so modifying the returned array will modify Bytes in place.
- Offset(vtableOffset)[source]¶
Offset provides access into the Table’s vtable.
Deprecated fields are ignored by checking the vtable’s length.
- Union(t2, off)[source]¶
Union initializes any Table-derived type to point to the union at the given offset.
- Vector(off)[source]¶
Vector retrieves the start of data of the vector whose offset is stored at “off” in this object.