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 33private static readonly ObjectPool<char[]> s_charArrayPool = new(() => new char[CharArrayLength], ObjectPoolCount); 199Contract.ThrowIfTrue(buffer.Length != CharArrayLength); 202writer.WriteInt32(CharArrayLength); 242private static int GetIndexFromPosition(int position) => position / CharArrayLength; 243private static int GetColumnFromPosition(int position) => position % CharArrayLength; 255Contract.ThrowIfTrue(chunkSize != CharArrayLength); 268Contract.ThrowIfTrue(length > CharArrayLength); 272Contract.ThrowIfTrue(currentChunk.Length != CharArrayLength); 275Contract.ThrowIfTrue(i < numberOfChunks - 1 && currentChunkLength != CharArrayLength); 284Contract.ThrowIfTrue(chunksArray.Any(static (c, s) => c.Length != s, CharArrayLength));