Skip to main content

decode_payload

Function decode_payload 

Source
pub fn decode_payload(bytes: &[u8]) -> Res<Payload>
Expand description

Decodes a retained Payload envelope (the inverse of encode_payload).

ยงErrors

Returns an error if the bytes are not a valid encoded envelope.