Function vortex_fastlanes::bitpack_unchecked
source · pub unsafe fn bitpack_unchecked(
parray: &PrimitiveArray,
bit_width: u8,
) -> VortexResult<Buffer>
Expand description
Bitpack a [PrimitiveArray] to the given width.
On success, returns a [Buffer] containing the packed data.
§Safety
Internally this function will promote the provided array to its unsigned equivalent. This will violate ordering guarantees if the array contains any negative values.
It is the caller’s responsibility to ensure that parray
is non-negative before calling
this function.