private void OnFlush(object sender, ArraySegment <byte> bytes) { if (bytes.Count > 0) { _hashFunc.Update(bytes.Array, bytes.Offset, bytes.Count); } }