/// Decodes the persistently stored header from a message.
/// Returns the header and a reference to the tail of the message.
Decodes the persistently stored header from a message.
Returns the header and a reference to the tail of the message.
Decodes the persistently stored header from a message . Returns the header and a reference to the tail of the message .
pub fn decode_persistent_header(bytes: &[u8]) -> Result<PersistentHeader> {
    let mut header = PersistentHeader::new_empty();
    Decoder::decode_with_context(&header.decoding_context(), bytes, &mut [], &mut header)?;
    Ok(header)
}
pub fn decode_persistent_header ( bytes : & [ u8 ] ) -> Result < PersistentHeader > { let mut header = PersistentHeader :: new_empty ( ) ; Decoder :: decode_with_context ( & header . decoding_context ( ) , bytes , & mut [ ] , & mut header ) ? ; Ok ( header ) }
Decodes the persistently stored header from a message.
Decodes the persistently stored header from a message .
bytes
&[u8]