Struct stream_vbyte::Scalar
[−]
[src]
pub struct Scalar;
Regular ol' byte shuffling. Works on every platform, but it's not the quickest.
Trait Implementations
impl Encoder for Scalar[src]
fn encode_quads(
input: &[u32],
control_bytes: &mut [u8],
encoded_nums: &mut [u8]
) -> usize[src]
input: &[u32],
control_bytes: &mut [u8],
encoded_nums: &mut [u8]
) -> usize
Encode all input numbers that are in groups of 4. control_bytes will be exactly as long as the number of complete 4-number quads in input. Control bytes are written to control_bytes and encoded numbers to encoded_nums. Returns the total bytes written to encoded_nums. Read more
impl Decoder for Scalar[src]
fn decode_quads(
_control_bytes: &[u8],
_encoded_nums: &[u8],
_output: &mut [u32]
) -> (usize, usize)[src]
_control_bytes: &[u8],
_encoded_nums: &[u8],
_output: &mut [u32]
) -> (usize, usize)
Decode encoded numbers in groups of 4 only. control_bytes will be exactly as long as the number of complete 4-number quads in input. Returns the number of numbers decoded and the total number of bytes read from encoded_nums. Read more