getDataBlocks

fun getDataBlocks(rawCodewords: ByteArray, version: Version): Array<DataBlock>

When Data Matrix Codes use multiple data blocks, they actually interleave the bytes of each of them. 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.

Return

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

Parameters

rawCodewords

bytes as read directly from the Data Matrix Code

version

version of the Data Matrix Code