6 writes to _state
System.IO.Hashing (6)
System\IO\Hashing\XxHash128.cs (6)
38
Initialize(ref
_state
, (ulong)seed);
44
_state
= state;
163
XxHashShared.Reset(ref
_state
);
170
XxHashShared.Append(ref
_state
, source);
189
CopyAccumulators(ref
_state
, accumulators);
193
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
);
185
if (
_state
.TotalLength > MidSizeMaxBytes)
191
fixed (byte* secret =
_state
.Secret)
195
low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes,
_state
.TotalLength * Prime64_1),
196
high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(
_state
.TotalLength * Prime64_2)));
201
fixed (byte* buffer =
_state
.Buffer)
203
current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)
_state
.TotalLength), (long)
_state
.Seed);