Skip to main content

slice_at

Function slice_at 

Source
pub fn slice_at(data: &[u8], offset: usize, len: usize) -> Result<&[u8]>
Expand description

Return data[offset..offset+len] or a corruption error.