Table

open class Table

All tables in the generated code derive from this class, and add their own accessors.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The underlying ReadWriteBuffer to hold the data of the Table.

Link copied to clipboard

Used to hold the position of the bb buffer.

Link copied to clipboard

Used to hold the vtable size.

Link copied to clipboard

Used to hold the vtable position.

Functions

Link copied to clipboard
fun indirect(offset: Int): Int

Retrieve a relative offset.

Link copied to clipboard
open fun keysCompare(o1: Offset<*>, o2: Offset<*>, buffer: ReadWriteBuffer): Int

Compare two tables by the key.

Link copied to clipboard
fun offset(vtableOffset: Int): Int

Look up a field in the vtable.

Link copied to clipboard
inline fun <T : Table> reset(): T

Resets the internal state with a null ReadWriteBuffer and a zero position.

inline fun <T : Table> reset(i: Int, reuseBuffer: ReadWriteBuffer): T

Re-init the internal state with an external buffer ReadWriteBuffer and an offset within.

Link copied to clipboard
fun <T> sortTables(offsets: Array<Offset<T>>, bb: ReadWriteBuffer)

Sort tables by the key.

Link copied to clipboard
fun string(offset: Int): String

Create a Java String from UTF-8 data stored inside the FlatBuffer.

Link copied to clipboard
fun union(t: Table, offset: Int): Table

Initialize any Table-derived type to point to the union at the given offset.

Link copied to clipboard
fun vector(offset: Int): Int

Get the start data of a vector.

Link copied to clipboard
fun vectorAsBuffer(buffer: ReadWriteBuffer, vectorOffset: Int, elemSize: Int): ReadBuffer

Initialize vector as a ReadWriteBuffer.

Link copied to clipboard
fun vectorLength(offset: Int): Int

Get the length of a vector.