5 writes to _state
Microsoft.CodeAnalysis (5)
Hashing\XxHash128.cs (5)
45
Initialize(ref
_state
, (ulong)seed);
160
XxHashShared.Reset(ref
_state
);
167
XxHashShared.Append(ref
_state
, source);
186
CopyAccumulators(ref
_state
, accumulators);
190
DigestLong(ref
_state
, accumulators, secret);
7 references to _state
Microsoft.CodeAnalysis (7)
Hashing\XxHash128.cs (7)
182
if (
_state
.TotalLength > MidSizeMaxBytes)
188
fixed (byte* secret =
_state
.Secret)
192
low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes,
_state
.TotalLength * Prime64_1),
193
high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(
_state
.TotalLength * Prime64_2)));
198
fixed (byte* buffer =
_state
.Buffer)
200
current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)
_state
.TotalLength), (long)
_state
.Seed);