Function p25::coding::reed_solomon::long::decode
[−]
[src]
pub fn decode(buf: &mut [Hexbit; 36]) -> Option<(&[Hexbit], usize)>
Try to decode the given 36-hexbit word to the nearest codeword, correcting up to 8 hexbit errors (up to 48 bit errors.)
If decoding was successful, return Some((data, err))
, where data
is the 20
data hexbits and err
is the number of corrected hexbits. Otherwise, return
None
to indicate an unrecoverable error.