Function datamatrix::errorcode::decode_block[][src]

pub fn decode_block(
    data: &mut [u8],
    err_len: usize
) -> Result<(), DecodingError>

Decode the Reed-Solomon code using a PGZ type algorithm.

PGZ stands for Peterson-Gorenstein-Zierler (PGZ) algorithm.

Params

The data block data consists of the data codewords and err_len error correction codewords.

No deinterleaving is done here (see error code creation), the input is expected to be one block.