decode

Function decode 

Source
pub fn decode(received: &[u8], parity: u8) -> Result<Codeword<'_>, DecodeError>
Expand description

Verifies the error-correcting code and returns the message.

ยงErrors

  • InputTooLarge is returned if len(received) > 255 bytes.
  • InsufficientParityBytes is returned if parity > length / 2.
  • RSDecodeError is returned if decoding fails for any reason.