[][src]Crate quartet

nib provides useful abstractions for working with data that is described/structure in 4-bit chunks.

use quartet::NibSlice;
let nib_slice = NibSlice::from_bytes_skip_last(&[0x12, 0x34, 0x50]);
assert_eq!(nib_slice.index(1), 2);

Structs

Iter

Iterate over a NibSlice, returning a nibble for each item

NibSlice

A slice ([T]) over nibs (4-bit values)

Enums

Exclude

Which nibs are excluded from the NibSlice but are included in the internal [u8]

Traits

SliceIndex

A helper trait used for indexing operations

Functions

decompose_offset

Decompose a nibble offset into byte oriented terms.