Function flatbuffers::size_prefixed_root[][src]

pub fn size_prefixed_root<'buf, T>(
    data: &'buf [u8]
) -> Result<T::Inner, InvalidFlatbuffer> where
    T: 'buf + Follow<'buf> + Verifiable

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.