Function flatbuffers::root_with_opts [−][src]
pub fn root_with_opts<'opts, 'buf, T>(
opts: &'opts VerifierOptions,
data: &'buf [u8]
) -> Result<T::Inner, InvalidFlatbuffer> where
T: 'buf + Follow<'buf> + Verifiable,
Expand description
Gets the root of the Flatbuffer, verifying it first with given 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.