bitmask_to_simd_mask

Function bitmask_to_simd_mask 

Source
pub fn bitmask_to_simd_mask<const N: usize, M>(
    mask_bytes: &[u8],
    offset: usize,
    logical_len: usize,
) -> Mask<M, N>
Expand description

Extracts a core::SIMD Mask<M, N> for a batch of N lanes from a Minarrow Bitmask.

  • mask_bytes: packed Arrow validity bits (LSB=index 0, bit=1 means valid)
  • offset: starting index (bit offset into the mask)
  • logical_len: number of logical bits in the mask
  • M: SIMD mask type (e.g., i64 for f64, i32 for f32, i8 for i8)

Returns: SIMD Mask<M, N> representing validity for these N lanes. Bits outside the logical length (i.e., mask is shorter than offset+N) are treated as valid.