4 writes to BufferedCount
System.IO.Hashing (4)
System\IO\Hashing\XxHashShared.cs (4)
182
state.
BufferedCount
= 0;
253
state.
BufferedCount
+= (uint)source.Length;
271
state.
BufferedCount
= 0;
328
state.
BufferedCount
= (uint)remaining.Length;
14 references to BufferedCount
System.IO.Hashing (14)
System\IO\Hashing\XxHashShared.cs (14)
243
Debug.Assert(state.
BufferedCount
<= InternalBufferLengthBytes);
250
if (source.Length <= InternalBufferLengthBytes - state.
BufferedCount
)
252
source.CopyTo(new Span<byte>(buffer + state.
BufferedCount
, source.Length));
263
if (state.
BufferedCount
!= 0)
265
int loadSize = InternalBufferLengthBytes - (int)state.
BufferedCount
;
267
source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.
BufferedCount
, loadSize));
326
Debug.Assert(state.
BufferedCount
== 0);
363
Debug.Assert(state.
BufferedCount
> 0);
368
if (state.
BufferedCount
>= StripeLengthBytes)
370
uint stripes = (state.
BufferedCount
- 1) / StripeLengthBytes;
375
accumulateData = buffer + state.
BufferedCount
- StripeLengthBytes;
380
int catchupSize = StripeLengthBytes - (int)state.
BufferedCount
;
383
new ReadOnlySpan<byte>(buffer, (int)state.
BufferedCount
).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.
BufferedCount
));