pub fn decode(received: &[u8], parity: u8) -> Result<Codeword<'_>, DecodeError>Expand description
Verifies the error-correcting code and returns the message.
ยงErrors
InputTooLargeis returned iflen(received)> 255 bytes.InsufficientParityBytesis returned ifparity > length / 2.RSDecodeErroris returned if decoding fails for any reason.