Function quartet::decompose_offset [−][src]
pub fn decompose_offset(exclude: Exclude, offs: usize) -> (usize, bool)
Expand description
Decompose a nibble offset into byte oriented terms.
Returns (byte_offset, is_low)
. byte_offset
is a offset into a [u8]
. is_low
is true when
the offs
refers to the lower nibble in the byte located at byte_offset
.