4 writes to BufferedCount
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
Utilities\Hashing\XxHashShared.cs (4)
185state.BufferedCount = 0; 260state.BufferedCount += (uint)source.Length; 278state.BufferedCount = 0; 335state.BufferedCount = (uint)remaining.Length;
14 references to BufferedCount
Microsoft.AspNetCore.Razor.Utilities.Shared (14)
Utilities\Hashing\XxHashShared.cs (14)
250Debug.Assert(state.BufferedCount <= InternalBufferLengthBytes); 257if (source.Length <= InternalBufferLengthBytes - state.BufferedCount) 259source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 270if (state.BufferedCount != 0) 272int loadSize = InternalBufferLengthBytes - (int)state.BufferedCount; 274source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 333Debug.Assert(state.BufferedCount == 0); 370Debug.Assert(state.BufferedCount > 0); 375if (state.BufferedCount >= StripeLengthBytes) 377uint stripes = (state.BufferedCount - 1) / StripeLengthBytes; 382accumulateData = buffer + state.BufferedCount - StripeLengthBytes; 387int catchupSize = StripeLengthBytes - (int)state.BufferedCount; 390new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));