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.
/// */
public sealed class ECBlocks
{
public int ECCodewordsPerBlock
{
get
{
return ecCodewordsPerBlock;
}
}
public int NumBlocks
{
get
{
int total = 0;
for (int i = 0; i < ecBlocks.Length; i++)
{
total += ecBlocks[i].Count;
}
return total;
}
}
public int TotalECCodewords
{
get
{
return ecCodewordsPerBlock * NumBlocks;
}
}
//UPGRADE_NOTE: Final was removed from the declaration of 'ecCodewordsPerBlock '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
private int ecCodewordsPerBlock;
//UPGRADE_NOTE: Final was removed from the declaration of 'ecBlocks '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
private ECB[] ecBlocks;
internal ECBlocks(int ecCodewordsPerBlock, ECB ecBlocks)
{
this.ecCodewordsPerBlock = ecCodewordsPerBlock;
this.ecBlocks = new ECB[] { ecBlocks };
}
internal ECBlocks(int ecCodewordsPerBlock, ECB ecBlocks1, ECB ecBlocks2)
{
this.ecCodewordsPerBlock = ecCodewordsPerBlock;
this.ecBlocks = new ECB[] { ecBlocks1, ecBlocks2 };
}
public ECB[] getECBlocks()
{
return ecBlocks;
}
}
/*///