setBytes method

void setBytes(
  1. Uint8List newHash
)

Set bytes from array

Implementation

void setBytes(Uint8List newHash) {
  if (newHash.length != hashSize) {
    throw ArgumentError('Invalid hash length: ${newHash.length}, expected: $hashSize');
  }
  _bytes.setAll(0, newHash);
}