shiftLeft static method

int shiftLeft(
  1. Uint8List block,
  2. Uint8List output
)

Implementation

static int shiftLeft(Uint8List block, Uint8List output) {
  var i = block.length;
  var bit = 0;
  while (--i >= 0) {
    var b = block[i] & 0xff;
    output[i] = (b << 1) | bit;
    bit = (b >> 7) & 1;
  }
  return bit;
}