Function vortex_fastlanes::unpack_single_primitive
source · pub unsafe fn unpack_single_primitive<T: NativePType + BitPacking>(
packed: &[T],
bit_width: usize,
index_to_decode: usize,
) -> T
Expand description
§Safety
The caller must ensure the following invariants hold:
packed.len() == (length + 1023) / 1024 * 128 * bit_width
index_to_decode < length
Where length
is the length of the array/slice backed by packed
(but is not provided to this function).