2 writes to TotalLength
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Utilities\Hashing\XxHashShared.cs (2)
187state.TotalLength = 0; 252state.TotalLength += (uint)source.Length;
4 references to TotalLength
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
Utilities\Hashing\XxHash128.cs (4)
180if (_state.TotalLength > MidSizeMaxBytes) 190low64: MergeAccumulators(accumulators, secret + SecretMergeAccsStartBytes, _state.TotalLength * Prime64_1), 191high64: MergeAccumulators(accumulators, secret + SecretLengthBytes - AccumulatorCount * sizeof(ulong) - SecretMergeAccsStartBytes, ~(_state.TotalLength * Prime64_2))); 198current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);