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