\Zxing\Qrcode\DecoderDataBlock

<p>Encapsulates a block of data within a QR Code. QR Codes may split their data into multiple blocks, each of which is a unit of data and error-correction codewords. Each is represented by an instance of this class.</p>

Summary

Methods
Properties
Constants
getDataBlocks()
getNumDataCodewords()
getCodewords()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$numDataCodewords
$codewords
N/A

Properties

$numDataCodewords

$numDataCodewords

$codewords

$codewords

Methods

getDataBlocks()

getDataBlocks(\Zxing\Qrcode\Decoder\bytes  $rawCodewords, \Zxing\Qrcode\Decoder\version  $version, mixed  $ecLevel) : array

<p>When QR Codes use multiple data blocks, they are actually interleaved.

That is, the first byte of data block 1 to n is written, then the second bytes, and so on. This method will separate the data into original blocks.

Parameters

\Zxing\Qrcode\Decoder\bytes $rawCodewords

as read directly from the QR Code

\Zxing\Qrcode\Decoder\version $version

of the QR Code

mixed $ecLevel

Returns

array —

DataBlocks containing original bytes, "de-interleaved" from representation in the QR Code

getNumDataCodewords()

getNumDataCodewords() : mixed

Returns

mixed —

getCodewords()

getCodewords() : mixed

Returns

mixed —

__construct()

__construct(mixed  $numDataCodewords, mixed  $codewords) : mixed

Parameters

mixed $numDataCodewords
mixed $codewords

Returns

mixed —