Function serialize::leb128::write_unsigned_leb128_to [] [src]

pub fn write_unsigned_leb128_to<W>(value: u128, write: W) -> usize where W: FnMut(usize, u8)
🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

encodes an integer using unsigned leb128 encoding and stores the result using a callback function.

The callback write is called once for each position that is to be written to with the byte to be encoded at that position.