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