Skip to main content

get_bytes_borrowed

Function get_bytes_borrowed 

Source
pub fn get_bytes_borrowed<'de>(
    buf: &mut &'de [u8],
) -> Result<&'de [u8], ProtocolError>
Expand description

Decode BYTES (non-flexible) borrowing from the input buffer. Wire: INT32 length, then length bytes. Length −1 = null (error here).