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

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

fn write_signed(&mut self, val: i64) -> Result<usize, Error>

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.

fn write_unsigned(&mut self, val: u64) -> Result<usize, Error>

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.

Loading content...

Implementors

impl<W> LEB128Write for W where
    W: BufMut
[src]

Loading content...