4 writes to BufferedCount
System.IO.Hashing (4)
System\IO\Hashing\XxHashShared.cs (4)
181
state.
BufferedCount
= 0;
252
state.
BufferedCount
+= (uint)source.Length;
270
state.
BufferedCount
= 0;
327
state.
BufferedCount
= (uint)remaining.Length;
14 references to BufferedCount
System.IO.Hashing (14)
System\IO\Hashing\XxHashShared.cs (14)
242
Debug.Assert(state.
BufferedCount
<= InternalBufferLengthBytes);
249
if (source.Length <= InternalBufferLengthBytes - state.
BufferedCount
)
251
source.CopyTo(new Span<byte>(buffer + state.
BufferedCount
, source.Length));
262
if (state.
BufferedCount
!= 0)
264
int loadSize = InternalBufferLengthBytes - (int)state.
BufferedCount
;
266
source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.
BufferedCount
, loadSize));
325
Debug.Assert(state.
BufferedCount
== 0);
362
Debug.Assert(state.
BufferedCount
> 0);
367
if (state.
BufferedCount
>= StripeLengthBytes)
369
uint stripes = (state.
BufferedCount
- 1) / StripeLengthBytes;
374
accumulateData = buffer + state.
BufferedCount
- StripeLengthBytes;
379
int catchupSize = StripeLengthBytes - (int)state.
BufferedCount
;
382
new ReadOnlySpan<byte>(buffer, (int)state.
BufferedCount
).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.
BufferedCount
));