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