4 writes to BufferedCount
Microsoft.CodeAnalysis (4)
Hashing\XxHashShared.cs (4)
186
state.
BufferedCount
= 0;
261
state.
BufferedCount
+= (uint)source.Length;
279
state.
BufferedCount
= 0;
336
state.
BufferedCount
= (uint)remaining.Length;
14 references to BufferedCount
Microsoft.CodeAnalysis (14)
Hashing\XxHashShared.cs (14)
251
Debug.Assert(state.
BufferedCount
<= InternalBufferLengthBytes);
258
if (source.Length <= InternalBufferLengthBytes - state.
BufferedCount
)
260
source.CopyTo(new Span<byte>(buffer + state.
BufferedCount
, source.Length));
271
if (state.
BufferedCount
!= 0)
273
int loadSize = InternalBufferLengthBytes - (int)state.
BufferedCount
;
275
source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.
BufferedCount
, loadSize));
334
Debug.Assert(state.
BufferedCount
== 0);
371
Debug.Assert(state.
BufferedCount
> 0);
376
if (state.
BufferedCount
>= StripeLengthBytes)
378
uint stripes = (state.
BufferedCount
- 1) / StripeLengthBytes;
383
accumulateData = buffer + state.
BufferedCount
- StripeLengthBytes;
388
int catchupSize = StripeLengthBytes - (int)state.
BufferedCount
;
391
new ReadOnlySpan<byte>(buffer, (int)state.
BufferedCount
).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.
BufferedCount
));