Skip to main content

unpack_indices

Function unpack_indices 

Source
pub fn unpack_indices(data: &[u64], bits: u8) -> impl Iterator<Item = u32>
Expand description

Unpacks indices from a compact bit array.

§Arguments

  • data - The packed bit array
  • bits - Bits per entry (must be 1, 2, 4, 8, or 16)

§Panics

Panics if bits is not a power of 2 or is greater than 16.