11 references to CharArrayLength
Microsoft.CodeAnalysis.Workspaces (11)
Shared\Extensions\SourceTextExtensions.cs (11)
30
/// cref="
CharArrayLength
"/> long. Putting arrays back into this of the wrong length will result in broken
33
private static readonly ObjectPool<char[]> s_charArrayPool = new(() => new char[
CharArrayLength
], ObjectPoolCount);
199
Contract.ThrowIfTrue(buffer.Length !=
CharArrayLength
);
202
writer.WriteInt32(
CharArrayLength
);
242
private static int GetIndexFromPosition(int position) => position /
CharArrayLength
;
243
private static int GetColumnFromPosition(int position) => position %
CharArrayLength
;
255
Contract.ThrowIfTrue(chunkSize !=
CharArrayLength
);
268
Contract.ThrowIfTrue(length >
CharArrayLength
);
272
Contract.ThrowIfTrue(currentChunk.Length !=
CharArrayLength
);
275
Contract.ThrowIfTrue(i < numberOfChunks - 1 && currentChunkLength !=
CharArrayLength
);
284
Contract.ThrowIfTrue(chunksArray.Any(static (c, s) => c.Length != s,
CharArrayLength
));