Trait radn::mode::Deserializer

source ·
pub trait Deserializer {
    // Required methods
    fn read_n(&mut self, n: usize) -> &[u8] ;
    fn read_all(&mut self) -> &[u8] ;
    fn tell(&self) -> usize;
}
Expand description

Trait representing a readable stream used for parsing.

See Serializer.

Required Methods§

source

fn read_n(&mut self, n: usize) -> &[u8]

Read at most n bytes.

source

fn read_all(&mut self) -> &[u8]

Read til the end of the stream.

source

fn tell(&self) -> usize

Current position of the stream. Used by CheckedParse.

Implementors§