endBinaryShift method

State endBinaryShift(
  1. int index
)

Implementation

State endBinaryShift(int index) {
  if (_binaryShiftByteCount == 0) {
    return this;
  }
  Token token = _token;
  token = token.addBinaryShift(
    index - _binaryShiftByteCount,
    _binaryShiftByteCount,
  );
  //assert token.getTotalBitCount() == this.bitCount;
  return State(token, _mode, 0, _bitCount);
}