Function flatbuffers::root_unchecked

source ·
pub unsafe fn root_unchecked<'buf, T>(data: &'buf [u8]) -> T::Inner
where T: Follow<'buf> + 'buf,
Expand description

Gets root for a trusted Flatbuffer.

§Safety

Flatbuffers accessors do not perform validation checks before accessing. Unlike the other root functions, this does not validate the flatbuffer before returning the accessor. Users must trust data contains a valid flatbuffer (e.g. b/c it was built by your software). Reading unchecked buffers may cause panics or even UB.