Skip to main content

read_root

Function read_root 

Source
pub fn read_root(data: &[u8]) -> u32
Expand description

Read the root offset from the first 4 bytes of a finished flatbuffer.

The root offset is a u32 at position 0 that gives the byte distance from itself to the root table object. root_offset + 0 = table position.