setBytes method
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);
}
Set bytes from array
void setBytes(Uint8List newHash) {
if (newHash.length != hashSize) {
throw ArgumentError('Invalid hash length: ${newHash.length}, expected: $hashSize');
}
_bytes.setAll(0, newHash);
}