5 writes to _state
System.IO.Hashing (5)
System\IO\Hashing\XxHash128.cs (5)
38
Initialize(ref
_state
, (ulong)seed);
153
XxHashShared.Reset(ref
_state
);
160
XxHashShared.Append(ref
_state
, source);
179
CopyAccumulators(ref
_state
, accumulators);
183
DigestLong(ref
_state
, accumulators, secret);
7 references to _state
System.IO.Hashing (7)
System\IO\Hashing\XxHash128.cs (7)
175
if (
_state
.TotalLength > MidSizeMaxBytes)
181
fixed (byte* secret =
_state
.Secret)
185
low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes,
_state
.TotalLength * Prime64_1),
186
high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(
_state
.TotalLength * Prime64_2)));
191
fixed (byte* buffer =
_state
.Buffer)
193
current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)
_state
.TotalLength), (long)
_state
.Seed);