Skip to main content

decode_reply

Function decode_reply 

Source
pub fn decode_reply(bytes: &[u8]) -> Result<PeerReply, CodecError>
Expand description

Decode a PeerReply previously produced by encode_reply.

ยงErrors

Returns CodecError when the payload is truncated or the magic header is wrong.