hashNext method
The RandomX hash_next
function.
Implementation
void hashNext(Uint8List bytes, Uint8List prevOutput) {
if (_destroyed) {
_throwAlreadyDestroyed();
}
var inputPointer = _getInputPointer(bytes.length);
inputPointer.setBytes(bytes);
var outputPointers = _getOutputPointer();
_functionRandomxHashNext(id, inputPointer, bytes.length, outputPointers);
final outBytes = outputPointers.asTypedList(sizeOfHash);
prevOutput.setAll(0, outBytes);
}