pub fn encode_persistent_header(header: &mut PersistentHeader) -> Result<Vec<u8>> {
    let mut header_bytes = Vec::<u8>::new();
    Encoder::encode(&mut header_bytes, &mut Vec::new(), header)?;
    Ok(header_bytes)
}
/// Encode PersistentHeader to persistent binary form.
Encode PersistentHeader to persistent binary form.
Encode PersistentHeader to persistent binary form .
pub fn encode_persistent_header(header: &mut PersistentHeader) -> Result<Vec<u8>> {
    let mut header_bytes = Vec::<u8>::new();
    Encoder::encode(&mut header_bytes, &mut Vec::new(), header)?;
    Ok(header_bytes)
}
pub fn encode_persistent_header ( header : & mut PersistentHeader ) -> Result < Vec < u8 > > { let mut header_bytes = Vec :: < u8 > :: new ( ) ; Encoder :: encode ( & mut header_bytes , & mut Vec :: new ( ) , header ) ? ; Ok ( header_bytes ) }
Encode PersistentHeader to persistent binary form.
Encode PersistentHeader to persistent binary form .
header
&mut PersistentHeader
header
&mut PersistentHeader