11 references to CharArrayLength
Microsoft.CodeAnalysis.Workspaces (11)
Shared\Extensions\SourceTextExtensions.cs (11)
31/// cref="CharArrayLength"/> long. Putting arrays back into this of the wrong length will result in broken 34private static readonly ObjectPool<char[]> s_charArrayPool = new(() => new char[CharArrayLength], ObjectPoolCount); 200Contract.ThrowIfTrue(buffer.Length != CharArrayLength); 203writer.WriteInt32(CharArrayLength); 243private static int GetIndexFromPosition(int position) => position / CharArrayLength; 244private static int GetColumnFromPosition(int position) => position % CharArrayLength; 256Contract.ThrowIfTrue(chunkSize != CharArrayLength); 269Contract.ThrowIfTrue(length > CharArrayLength); 273Contract.ThrowIfTrue(currentChunk.Length != CharArrayLength); 276Contract.ThrowIfTrue(i < numberOfChunks - 1 && currentChunkLength != CharArrayLength); 285Contract.ThrowIfTrue(chunksArray.Any(static (c, s) => c.Length != s, CharArrayLength));