Function p25::coding::reed_solomon::short::decode [] [src]

pub fn decode(buf: &mut [Hexbit; 24]) -> Option<(&[Hexbit], usize)>

Try to decode the given 24-hexbit word to the nearest codeword, correcting up to 6 hexbit errors (up to 36 bit errors.)

If decoding was successful, return Some((data, err)), where data is the 12 data hexbits and err is the number of corrected hexbits. Otherwise, return None to indicate an unrecoverable error.