Struct flatbuffers::Verifier [−][src]
pub struct Verifier<'opts, 'buf> { /* fields omitted */ }
Expand description
Carries the verification state. Should not be reused between tables.
Implementations
impl<'opts, 'buf> Verifier<'opts, 'buf>
[src]
impl<'opts, 'buf> Verifier<'opts, 'buf>
[src]pub fn new(opts: &'opts VerifierOptions, buffer: &'buf [u8]) -> Self
[src]
pub fn in_buffer<T>(&mut self, pos: usize) -> Result<(), InvalidFlatbuffer>
[src]
pub fn in_buffer<T>(&mut self, pos: usize) -> Result<(), InvalidFlatbuffer>
[src]Check that there really is a T in there.
pub fn visit_table<'ver>(
&'ver mut self,
table_pos: usize
) -> Result<TableVerifier<'ver, 'opts, 'buf>, InvalidFlatbuffer>
[src]
&'ver mut self,
table_pos: usize
) -> Result<TableVerifier<'ver, 'opts, 'buf>, InvalidFlatbuffer>
pub fn verify_union_variant<T: Verifiable>(
&mut self,
variant: &'static str,
position: usize
) -> Result<(), InvalidFlatbuffer>
[src]
pub fn verify_union_variant<T: Verifiable>(
&mut self,
variant: &'static str,
position: usize
) -> Result<(), InvalidFlatbuffer>
[src]Runs the union variant’s type’s verifier assuming the variant is at the given position, tracing the error.