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