Function nix_compat::nar::reader::read::bytes_buf

source ·
pub fn bytes_buf<'a, const N: usize>(
    reader: &mut Reader<'_>,
    buf: &'a mut [u8; N],
    max_len: usize
) -> Result<&'a [u8]>
Expand description

Consume a byte string from the reader into a provided buffer, returning the data bytes.