6 writes to _state
System.IO.Hashing (6)
System\IO\Hashing\XxHash128.cs (6)
38
Initialize(ref
_state
, (ulong)seed);
44
_state
= state;
156
XxHashShared.Reset(ref
_state
);
163
XxHashShared.Append(ref
_state
, source);
182
CopyAccumulators(ref
_state
, accumulators);
186
DigestLong(ref
_state
, accumulators, secret);
8 references to _state
System.IO.Hashing (8)
System\IO\Hashing\XxHash128.cs (8)
49
public XxHash128 Clone() => new(
_state
);
178
if (
_state
.TotalLength > MidSizeMaxBytes)
184
fixed (byte* secret =
_state
.Secret)
188
low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes,
_state
.TotalLength * Prime64_1),
189
high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(
_state
.TotalLength * Prime64_2)));
194
fixed (byte* buffer =
_state
.Buffer)
196
current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)
_state
.TotalLength), (long)
_state
.Seed);