Skip to main content

decode_header

Function decode_header 

Source
pub fn decode_header(buf: &[u8]) -> Result<(OuterHeader, &[u8]), EnvelopeError>
Available on crate feature std and non-WebAssembly only.
Expand description

Parse [flags][cid]; returns the header and the remaining bytes.