Skip to main content

take_n

Function take_n 

Source
pub fn take_n<'a>(buf: &mut &'a [u8], n: usize) -> Result<&'a [u8], DiagError>
Expand description

Consumes exactly n bytes from the cursor, returning a zero-copy slice.