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]

[src]

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]

[src]

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