2 writes to TotalLength
System.IO.Hashing (2)
System\IO\Hashing\XxHashShared.cs (2)
183state.TotalLength = 0; 244state.TotalLength += (uint)source.Length;
7 references to TotalLength
System.IO.Hashing (7)
System\IO\Hashing\XxHash128.cs (4)
175if (_state.TotalLength > MidSizeMaxBytes) 185low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes, _state.TotalLength * Prime64_1), 186high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 193current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash3.cs (3)
176if (_state.TotalLength > MidSizeMaxBytes) 185current = MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes, _state.TotalLength * Prime64_1); 192current = HashToUInt64(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);