pub(crate) fn slice_from_slice_at_offset(
bytes: &[u8],
base_offset: usize,
range: Range<usize>,
) -> Result<&[u8], ArrowError>
Expand description
Helper to safely slice bytes with offset calculations.
Equivalent to slice_from_slice(bytes, (base_offset + range.start)..(base_offset + range.end))
but using checked addition to prevent integer overflow panics on 32-bit systems.