67 references to ReadBytes
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
illink (2)
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1744return new Guid(_binaryReader.ReadBytes(16 /*sizeof(Guid) - to avoid unsafe context, Guid will never change in size */));
Microsoft.Build.Engine.UnitTests (4)
BinaryLogger_Tests.cs (3)
242while (br1.ReadBytes(bufferSize) is { Length: > 0 } bytes1) 244var bytes2 = br2.ReadBytes(bufferSize); 251br2.ReadBytes(bufferSize).Length.ShouldBe(0, "Second buffer contains bytes after first file end");
BuildEventArgsSerialization_Tests.cs (1)
51Assert.Equal(bytes, binaryReader.ReadBytes(bytes.Length));
Microsoft.Build.Framework (2)
BinaryReaderExtensions.cs (1)
88return new Guid(reader.ReadBytes(sizeof(Guid)));
BinaryTranslator.cs (1)
289byteArray = _reader.ReadBytes(count);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyInformation.cs (1)
1161var v = Encoding.UTF8.GetString(sr.ReadBytes(length));
Microsoft.CodeAnalysis (2)
CvtRes.cs (1)
412resWriter.Write(iconReader.ReadBytes(checked((int)iconDirEntries[i].dwBytesInRes)));
StrongName\CryptoBlobParser.cs (1)
341byte[] data = br.ReadBytes(count);
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
186output = reader.ReadBytes(count);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Microsoft.DotNet.SignTool.Tests (4)
SignToolTests.cs (4)
3478var bytesBeforeOffset = reader.ReadBytes(offset); 3488var bytesAfterChecksum = reader.ReadBytes((int)inputStream.Length - offset - 1); 3501var bytesBeforeOffset = reader.ReadBytes(offset); 3511var bytesAfterChecksum = reader.ReadBytes((int)inputStream.Length - offset - sizeof(uint));
Microsoft.DotNet.StrongName (2)
Signing.cs (1)
331var modulus = br.ReadBytes(modulusLength);
Utils.cs (1)
369byte[] data = reader.ReadBytes(count);
Microsoft.Maui.Graphics (1)
PlatformImage.cs (1)
156 byte[] data = reader.ReadBytes(len);
Microsoft.ML.Core (2)
Data\ModelHeader.cs (1)
325byte[] headerBytes = reader.ReadBytes(ModelHeader.Size);
Utilities\Stream.cs (1)
665var bytes = reader.ReadBytes(size);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (2)
1519byteArray = m_br.ReadBytes(ByteLength) 1975System.Buffer.BlockCopy(m_br.ReadBytes(totalLength), 0, arr, 0, totalLength)
MSBuildTaskHost (1)
BackEnd\BinaryTranslator.cs (1)
191? Reader.ReadBytes(count)
PresentationCore (3)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
561return br.ReadBytes((int)(memStream.Length - previouslyReadBytes)); 681byte[] bytestring = br.ReadBytes((int)memStream.Length);
System\Windows\Input\Cursor.cs (1)
222byte[] cursorData = reader.ReadBytes(BUFFERSIZE);
PresentationFramework (5)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
923binaryData = new MemoryStream(_binaryReader.ReadBytes(contentSize)); 1511_xamlNodesWriter.WriteValue(GetTextFromBinary(_binaryReader.ReadBytes(recordSize - 5), 1529_xamlNodesWriter.WriteValue(converter.ConvertFrom(_binaryReader.ReadBytes(dataByteSize))); 1533_xamlNodesWriter.WriteValue((_binaryReader.ReadBytes(1)[0] == 0) ? false : true);
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
25byte[] bytes = reader.ReadBytes(dataByteSize);
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
System.Formats.Nrbf (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
102return (T[])(object)reader.ReadBytes(count);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
180byte[] bytes = _store.ReadBytes(len);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
717return _store.ReadBytes(len); 740byte[] bytes = _store.ReadBytes(len);
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEBinaryReader.cs (1)
48return _reader.ReadBytes(count);
System.Resources.Extensions (4)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
717return _store.ReadBytes(len); 740byte[] bytes = _store.ReadBytes(len);
System\Resources\Extensions\DeserializingResourceReader.cs (2)
168byte[] data = _store.ReadBytes(length); 216byte[] bytes = _store.ReadBytes(length);
System.Security.Claims (3)
System\Security\Claims\Claim.cs (1)
131_userSerializationData = reader.ReadBytes(cb);
System\Security\Claims\ClaimsIdentity.cs (1)
827_userSerializationData = reader.ReadBytes(cb);
System\Security\Claims\ClaimsPrincipal.cs (1)
179_userSerializationData = reader.ReadBytes(cb);
System.Security.Cryptography (1)
System\Security\Cryptography\CapiHelper.Shared.cs (1)
259byte[] data = br.ReadBytes(count);
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
173resourceManagerRecoveryInformation = reader.ReadBytes(recoveryInformation.Length - checked((int)stream.Position));
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
251_buffer = binaryReader.ReadBytes(_length);
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
335var bytes = _reader.ReadBytes(characterCount * sizeof(char));