Trait nt_leb128::read::LEB128Read [−][src]
pub trait LEB128Read { fn read_signed(&mut self) -> Result<(i64, usize), Error>; fn read_unsigned(&mut self) -> Result<(u64, usize), Error>; }
Trait for reading signed and unsigned LEB128 encoded numbers
Required Methods
fn read_signed(&mut self) -> Result<(i64, usize), Error>
Read a signed LEB128 number from the given std::io::Read
able and
return it or an error if reading failed.
fn read_unsigned(&mut self) -> Result<(u64, usize), Error>
Read an unsigned LEB128 number from the given std::io::Read
able and
return it or an error if reading failed.
Implementors
impl<R> LEB128Read for R where
R: Read,