BlockHashSink constructor
Initialize a new sink for the block hash
Parameters:
blockLength
is the length of each block in each $update call.bufferLength
is the buffer length where blocks are stored temporarily
Implementation
BlockHashSink(this.blockLength, {int? bufferLength}) : super() {
buffer = Uint8List(bufferLength ?? blockLength);
sbuffer = buffer.buffer.asUint32List();
bdata = buffer.buffer.asByteData();
}