2 writes to TotalLength
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
188
state.
TotalLength
= 0;
253
state.
TotalLength
+= (uint)source.Length;
4 references to TotalLength
Microsoft.CodeAnalysis.CodeStyle (4)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (4)
182
if (_state.
TotalLength
> MidSizeMaxBytes)
192
low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes, _state.
TotalLength
* Prime64_1),
193
high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.
TotalLength
* Prime64_2)));
200
current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.
TotalLength
), (long)_state.Seed);