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