add method
Folds one record into the digest.
Implementation
void add(String key, Hlc hlc) {
final hash = sha256.convert(
[...utf8.encode(key), 0x00, ...utf8.encode(hlc.toString())]).bytes;
for (var i = 0; i < 16; i++) {
_xor[i] ^= hash[i];
}
_count++;
if (_min == null || hlc < _min!) _min = hlc;
if (_max == null || hlc > _max!) _max = hlc;
}