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