13 references to InternalBufferLengthBytes
Microsoft.CodeAnalysis.Workspaces (13)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (13)
37public const int InternalBufferStripes = InternalBufferLengthBytes / StripeLengthBytes; 125Debug.Assert(InternalBufferLengthBytes % StripeLengthBytes == 0); 251Debug.Assert(state.BufferedCount <= InternalBufferLengthBytes); 258if (source.Length <= InternalBufferLengthBytes - state.BufferedCount) 273int loadSize = InternalBufferLengthBytes - (int)state.BufferedCount; 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 316else if (source.Length - sourceIndex > InternalBufferLengthBytes) 322sourceIndex += InternalBufferLengthBytes; 324while (source.Length - sourceIndex > InternalBufferLengthBytes); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 333Debug.Assert(remaining.Length <= InternalBufferLengthBytes); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 822/// <summary>The internal buffer. Length is <see cref="InternalBufferLengthBytes"/>.</summary>