pub fn get_slice(
mmap: &Mmap,
offset: usize,
size: usize,
) -> Result<(&[u8], usize)>
Expand description
Get a reference to the data at offset
of size
bytes if that slice
doesn’t overrun the internal buffer. Otherwise return an Error.
Also return the offset of the first byte after the requested data that
falls on a 64-byte boundary.