8 overrides of CopyTo
Microsoft.CodeAnalysis (6)
Text\ChangedText.cs (1)
148public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\CompositeText.cs (1)
141public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\LargeText.cs (1)
155public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\StringBuilderText.cs (1)
88public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\StringText.cs (1)
86public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\SubText.cs (1)
80public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
311public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\SourceUtilities.cs (1)
37public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
24 references to CopyTo
Microsoft.CodeAnalysis (9)
Text\ChangedText.cs (1)
150_newText.CopyTo(sourceIndex, destination, destinationIndex, count);
Text\CompositeText.cs (1)
155segment.CopyTo(segOffset, destination, destinationIndex, copyLength);
Text\SourceText.cs (5)
552this.CopyTo(offset, buffer, 0, count); 624this.CopyTo(position, buffer, 0, copyLength); 942this.CopyTo(position, buffer, 0, contentLength); 1073this.CopyTo(position, buffer1, 0, n); 1074other.CopyTo(position, buffer2, 0, n);
Text\SourceTextStream.cs (1)
135_source.CopyTo(_sourceOffset, _charBuffer, 0, charsToRead);
Text\SubText.cs (1)
83UnderlyingText.CopyTo(span.Start, destination, destinationIndex, span.Length);
Microsoft.CodeAnalysis.CSharp (2)
Parser\SlidingTextWindow.cs (2)
187_text.CopyTo(position, _characterWindow, 0, amountToRead); 233_text.CopyTo(_basis + _characterWindowCount,
Microsoft.CodeAnalysis.UnitTests (10)
Text\LargeTextTests.cs (3)
82text.CopyTo(0, buffer, destOffset, text.Length); 97text.CopyTo(3, buffer, 0, 3); 129text.CopyTo(start, buffer, 0, HelloWorld.Length);
Text\TextChangeTests.cs (7)
219newText.CopyTo(0, destination, 0, 0); //should copy nothing and not throw. 220Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(-1, destination, 0, 2)); 221Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, -1, 2)); 222Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, 0, -1)); 223Assert.Throws<ArgumentNullException>(() => newText.CopyTo(0, null, 0, 2)); 224Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(newText.Length - 1, destination, 0, 2)); 225Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, destination.Length - 1, 2));
Microsoft.CodeAnalysis.VisualBasic (1)
Scanner\ScannerBuffer.vb (1)
93_buffer.CopyTo(pageStart, p._arr, 0, Math.Min(_bufferLen - pageStart, s_PAGE_SIZE))
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\SourceTextExtensions.cs (2)
203sourceText.CopyTo(offset, buffer, 0, buffer.Length); 211sourceText.CopyTo(offset, tempArray, 0, tempArray.Length);