Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<SwimMessage, SwimError>
Expand description

Decode a zerompk byte buffer into a SwimMessage. Truncated or malformed input returns SwimError::Decode rather than panicking.