/// 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_body<T: Decodable>(bytes: &[u8], header: &PersistentHeader) -> Result<T> {
    let mut output = T::new_empty();
    Decoder::decode_with_context(&header.decoding_context(), bytes, &mut [], &mut output)?;
    Ok(output)
}
pub fn decode_persistent_body < T : Decodable > ( bytes : & [ u8 ] , header : & PersistentHeader ) -> Result < T > { let mut output = T :: new_empty ( ) ; Decoder :: decode_with_context ( & header . decoding_context ( ) , bytes , & mut [ ] , & mut output ) ? ; Ok ( output ) }
Decodes the persistently stored header from a message.
Decodes the persistently stored header from a message .
bytes
&[u8]
header
&PersistentHeader