Module bit_packed_decoder

Module bit_packed_decoder 

Source
Expand description

The Bit Packed Decoder. As a difference to the Versioned Decoder, the fields are not tagged.

Functionsยง

byte_align
Takes the remainder of bits in the current input to align the input to a byte boundary.
parse_bool
Reads a single bit and transforms into a bool.
parse_packed_int
Reads a packed int, In offset binary representation, (also called excess-K or biased). a signed number is represented by the bit pattern corresponding to the unsigned number plus K, with K being the biasing value or offset.
rtake_n_bits
Takes n bits from the input bytes. The bits are taken counting from right to left. It returns the original input as if had not been processed. The caller must call the normal take process afterwards.
take_bit_array
Takes n total bits from the current u8 slice at the current offset and transforms the data into a Vec<u8>
take_fourcc
Takes 4 unaligned bytes
take_n_bits_into_i64
Takes n total bits from the current u8 slice at the current offset and transforms the data into an u64, this works with Big Endian
take_null
Just a function that would be called when a null is needed, this is for debugging purposes
take_unaligned_byte
Takes 1 unaligned bytes