Function passerine::common::number::split_number[][src]

pub fn split_number(n: usize) -> Vec<u8>

Splits a number into a vector of bytes. Each byte in the vector is layed out as follows:


Where C is the continue bit-flag, and d are data bits. These sequences are designed to be insertable into byte streams. For example, 0b10001000_00100101_00100100 would become [0b10100100, 0b11001010, 0b10100000, 0b00001000].