Struct flatbuffers::Table [] [src]

pub struct Table<'a> {
    // some fields omitted
}

A wrapper object around Flatbuffer table data.

Methods

impl<'a> Table<'a>
[src]

fn from_offset(buffer: &[u8], offset: UOffsetT) -> Table

Create a table using from a slice using data starting at offset.

fn with_pos(buffer: &[u8], pos: UOffsetT) -> Table

Create a table for a simple inline struct.

fn get_root(&self, offset: UOffsetT) -> Table

Return an object table at offset.

fn get_indirect_root(&self, offset: UOffsetT) -> Table

Return an object table at offset specified by offset.

fn field_offset(&self, field: VOffsetT) -> UOffsetT

Returns the field offset or 0 if the field was not present.

fn byte_vector(&self, offset: UOffsetT) -> &[u8]

ByteVector gets an unsigned byte slice from data stored inside the flatbuffer.

fn ibyte_vector(&self, offset: UOffsetT) -> &[i8]

ByteVector gets a signed byte slice from data stored inside the flatbuffer.

fn bool_vector(&self, offset: UOffsetT) -> &[bool]

ByteVector gets a slice of bool from data stored inside the flatbuffer.

fn struct_vector<T: From<Table<'a>>>(&'a self, offset: UOffsetT) -> Iterator<T>

TODO

fn table_vector<T: From<Table<'a>>>(&'a self, offset: UOffsetT) -> Iterator<T>

TODO

fn str_vector(&'a self, offset: UOffsetT) -> Iterator<&str>

TODO

fn get_bool(&self, offset: UOffsetT) -> bool

TODO

fn get_u8(&self, offset: UOffsetT) -> u8

TODO

fn get_i8(&self, offset: UOffsetT) -> i8

TODO

fn get_u16(&self, offset: UOffsetT) -> u16

TODO

fn get_i16(&self, offset: UOffsetT) -> i16

TODO

fn get_u32(&self, offset: UOffsetT) -> u32

TODO

fn get_i32(&self, offset: UOffsetT) -> i32

TODO

fn get_u64(&self, offset: UOffsetT) -> u64

TODO

fn get_i64(&self, offset: UOffsetT) -> i64

TODO

fn get_f32(&self, offset: UOffsetT) -> f32

TODO

fn get_f64(&self, offset: UOffsetT) -> f64

TODO

fn get_str(&self, offset: UOffsetT) -> &str

TODO

fn get_struct<T: From<Table<'a>>>(&self, offset: UOffsetT) -> T

Retrieve a struct table from offset.

fn get_pos(&self) -> UOffsetT

Accesor function for the tables position in the buffer.

fn read_uoffset(&self, offset: UOffsetT) -> UOffsetT

Reads an offset at exact position.

Trait Implementations

impl<'a> Eq for Table<'a>
[src]

impl<'a> PartialEq for Table<'a>
[src]

fn eq(&self, __arg_0: &Table<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Table<'a>) -> bool

This method tests for !=.

impl<'a> Copy for Table<'a>
[src]

impl<'a> Clone for Table<'a>
[src]

fn clone(&self) -> Table<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Debug for Table<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> From<&'a [u8]> for Table<'a>
[src]

fn from(buf: &[u8]) -> Table

Performs the conversion.