update0 method

void update0(
  1. int b
)

Implementation

void update0(final int b) {
  final int remainingLength = Const.blockLengthBytes - _bufferPos;
  if (remainingLength == 0) {
    _t0 += Const.blockLengthBytes;
    if (_t0 == 0) {
      _t1++;
    }
    _compress(_buffer, 0);
    _buffer.fillRange(0, _buffer.length, 0);
    _buffer[0] = b;
    _bufferPos = 1;
  } else {
    _buffer[_bufferPos] = b;
    _bufferPos++;
  }
}