public static final class Version.ECBlocks extends Object
Encapsulates a set of error-correction blocks in one symbol version. Most versions will use blocks of differing sizes within one version, so, this encapsulates the parameters for each set of blocks. It also holds the number of error-correction codewords per block since it will be the same across all blocks within one version.
Modifier and Type | Field and Description |
---|---|
private Version.ECB[] |
ecBlocks |
private int |
ecCodewordsPerBlock |
Constructor and Description |
---|
ECBlocks(int ecCodewordsPerBlock,
Version.ECB ecBlocks) |
ECBlocks(int ecCodewordsPerBlock,
Version.ECB ecBlocks1,
Version.ECB ecBlocks2) |
Modifier and Type | Method and Description |
---|---|
Version.ECB[] |
getECBlocks() |
int |
getECCodewordsPerBlock() |
int |
getNumBlocks() |
int |
getTotalECCodewords() |
private final int ecCodewordsPerBlock
private final Version.ECB[] ecBlocks
ECBlocks(int ecCodewordsPerBlock, Version.ECB ecBlocks)
ECBlocks(int ecCodewordsPerBlock, Version.ECB ecBlocks1, Version.ECB ecBlocks2)
public int getECCodewordsPerBlock()
public int getNumBlocks()
public int getTotalECCodewords()
public Version.ECB[] getECBlocks()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses