13 references to TryReadAll
Microsoft.CodeAnalysis (4)
CvtRes.cs (2)
209stream.TryReadAll(imageResourceSectionBytes, 0, rsrc1.SizeOfRawData); // ConfirmSectionValues ensured that data are available 211stream.TryReadAll(imageResourceSectionBytes, rsrc1.SizeOfRawData, rsrc2.SizeOfRawData); // ConfirmSectionValues ensured that data are available
EncodedStringText.cs (1)
219var success = stream.TryReadAll(buffer, 0, length) == length;
InternalUtilities\StreamExtensions.cs (1)
68int actualLength = TryReadAll(stream, buffer, 0, buffer.Length);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\DesktopAssemblyLoaderImpl.cs (2)
33peStream.TryReadAll(peImage, 0, peImage.Length); 38pdbStream.TryReadAll(pdbImage, 0, pdbImage.Length);
Microsoft.CodeAnalysis.UnitTests (7)
InternalUtilities\StreamExtensionsTests.cs (7)
39Assert.Equal(sourceArray.Length, stream.TryReadAll(destArray, 0, sourceArray.Length)); 49Assert.Throws<IOException>(() => stream.TryReadAll(null, 0, 1)); 59Assert.Equal(0, stream.TryReadAll(buffer, 0, 1)); 60Assert.Throws<ArgumentException>(() => stream.TryReadAll(buffer, 0, 100)); 84Assert.Throws<IOException>(() => stream.TryReadAll(destArray, 0, sourceArray.Length)); 109Assert.Throws<IOException>(() => stream.TryReadAll(destArray, 0, sourceArray.Length)); 121Assert.Equal(4, stream.TryReadAll(destArray, 0, 6));