Function flatbuffers::size_prefixed_root
source · pub fn size_prefixed_root<'buf, T>(
data: &'buf [u8]
) -> Result<T::Inner, InvalidFlatbuffer>where
T: 'buf + Follow<'buf> + Verifiable,
Expand description
Gets the root of a size prefixed Flatbuffer, verifying it first with default options.
Note that verification is an experimental feature and may not be maximally performant or
catch every error (though that is the goal). See the _unchecked
variants for previous
behavior.