absorb method

void absorb(
  1. int data
)
inherited

Implementation

void absorb(int data) {
  if ((_bitsInQueue % 8) != 0) {
    throw StateError('attempt to absorb with odd length queue');
  }
  if (_squeezing) {
    throw StateError('attempt to absorb while squeezing');
  }

  _dataQueue[_bitsInQueue >> 3] = data;
  if ((_bitsInQueue += 8) == _rate) {
    _keccakAbsorb(_dataQueue, 0);
    _bitsInQueue = 0;
  }
}