getCodewordsRemaining method

int getCodewordsRemaining(
  1. int minimum
)

Returns the remaining capacity in codewords of the smallest symbol that has enough capacity to fit the given minimal number of codewords.

Implementation

int getCodewordsRemaining(int minimum) {
  return getMinSymbolSize(minimum) - minimum;
}