Trait nt_leb128::write::LEB128Write[][src]

pub trait LEB128Write {
    fn write_signed(&mut self, val: i64) -> Result<usize, Error>;
fn write_unsigned(&mut self, val: u64) -> Result<usize, Error>; }

Trait for writing signed and unsigned LEB128 encoded numbers

Required Methods

Write the given signed number using the LEB128 encoding to the given std::io::Writeable. Returns the number of bytes written to w, or an error if writing failed.

Write the given unsigned number using the LEB128 encoding to the given std::io::Writeable. Returns the number of bytes written to w, or an error if writing failed.

Implementors