getCodeword static method
@param symbol encoded symbol to translate to a codeword @return the codeword corresponding to the symbol.
Implementation
static int getCodeword(int symbol) {
//int i = SYMBOL_TABLE.indexOf(symbol);
final i = MathUtils.binarySearch(symbolTable, symbol & 0x3FFFF);
if (i < 0) {
return -1;
}
return (_codewordTable[i] - 1) % numerOfCodewords;
}