ErrorCorrection
in package
Com\Tecnick\Barcode\Type\Square\Datamatrix\ErrorCorrection
Error correction methods and other utilities for Datamatrix Barcode type class
Tags
Table of Contents
Methods
- getErrorCorrection() : array<int, int>
- Add error correction codewords to data codewords array (ANNEX E).
Methods
getErrorCorrection()
Add error correction codewords to data codewords array (ANNEX E).
public getErrorCorrection(array<int,
int> $wdc,
int $nbk,
int $ncw,
int $ncc[,
int $ngf
= 256
][,
int $vpp
= 301
]) : array<int,
int>
Parameters
- $wdc : array<int, int>
-
Array of datacodewords.
- $nbk : int
-
Number of blocks.
- $ncw : int
-
Number of data codewords per block.
- $ncc : int
-
Number of correction codewords per block.
- $ngf : int = 256
-
Number of fields on log/antilog table (power of 2).
- $vpp : int = 301
-
The value of its prime modulus polynomial (301 for ECC200).
Return values
array<int, int> —data codewords + error codewords