pub fn slice_range(offset: u64, len: u64, total: u64) -> Result<(usize, usize)>
Expand description
Compute a safe byte slice range for a given total length, returning start..end as usize tuple.
ยงErrors
Returns MmapIoError::OutOfBounds
if the requested range exceeds the total length.