Module p25::coding::reed_solomon::short [] [src]

Encoding and decoding of the (24, 12, 13) code.

Functions

decode

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

encode

Calculate the 12 parity hexbits for the first 12 data hexbits in the given buffer, placing the parity hexbits at the end of the buffer.