[−][src]Trait nt_leb128::write::LEB128Write
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::Write
able. 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::Write
able. Returns the number of bytes written to w
, or an
error if writing failed.