2 writes to B
System.AddIn (2)
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (2)
63B = new BinaryReader(TheFile); 109B = null;
53 references to B
System.AddIn (53)
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (34)
64B.BaseStream.Seek(0x3C, SeekOrigin.Begin); // Pointer to signature 65UInt32 signatureAt = B.ReadUInt32(); 66B.BaseStream.Seek(signatureAt, SeekOrigin.Begin); 67if ((B.ReadByte() != (byte)'P') || (B.ReadByte() != (byte)'E') || 68(B.ReadByte() != 0) || (B.ReadByte() != 0)) 73B.BaseStream.Seek(MagicAt, SeekOrigin.Begin); 74UInt16 magic = B.ReadUInt16(); 90B.BaseStream.Seek(CLIHeaderDDAt, SeekOrigin.Begin); 91UInt32 CLIHeaderRVA = B.ReadUInt32(); 94B.BaseStream.Seek(NSectionsAt, SeekOrigin.Begin); 95UInt16 NSections = B.ReadUInt16(); 96B.BaseStream.Seek(sectionHeadersAt, SeekOrigin.Begin); 100B.BaseStream.Seek(sectionHeadersAt + i * 40, SeekOrigin.Begin); 101Sections[i].Read(B); 107if (B != null) { 108B.Close(); 170return Encoder.GetString(B.ReadBytes((Int32) NChars)); 185B.BaseStream.Seek(RVAToFileAddress(RVA), SeekOrigin.Begin); 198if (B == null) 204UInt32 MetaDataRVA = B.ReadUInt32(); 205UInt32 MetaDataSize = B.ReadUInt32(); 213UInt32 VersionLength = B.ReadUInt32(); 218UInt16 NStreams = B.ReadUInt16(); 221for (int i = 0; i < NStreams; i++) Streams[i] = new StreamDesc(B, MetadataRoot); 230TablesStream.SeekTo(B, 0); 231metaData = new MDTables(B, stringStream, blobStream); 351UInt32 HashAlgorithm = B.ReadUInt32(); 352UInt16 Major = B.ReadUInt16(); 353UInt16 Minor = B.ReadUInt16(); 354UInt16 Build = B.ReadUInt16(); 355UInt16 Revision = B.ReadUInt16(); 357UInt32 AssemblyFlags = B.ReadUInt32();
System\Addin\MiniReflection\MiniAssembly.cs (3)
110peFile.B.ReadUInt32(); // TypeAttributes 148peFile.B.ReadUInt64(); // Skip 4 parts of the version number. 149peFile.B.ReadUInt32(); // AssemblyFlags
System\Addin\MiniReflection\MiniModule.cs (3)
102_peFile.B.ReadUInt16(); // number 103_peFile.B.ReadUInt16(); // flags 173System.Reflection.TypeAttributes flags = (System.Reflection.TypeAttributes) _peFile.B.ReadUInt32();
System\Addin\MiniReflection\TypeInfo.cs (13)
88peFile.B.ReadUInt32(); // TypeAttributes; 152UInt16 major = peFile.B.ReadUInt16(); 153UInt16 minor = peFile.B.ReadUInt16(); 154UInt16 build = peFile.B.ReadUInt16(); 155UInt16 revision = peFile.B.ReadUInt16(); 156peFile.B.ReadUInt32(); // assembly flags 320System.Reflection.TypeAttributes attrs = (System.Reflection.TypeAttributes) peFile.B.ReadUInt32(); // TypeAttributes; 424peFile.B.ReadUInt32(); // TypeAttributes; 487System.Reflection.TypeAttributes flags = (System.Reflection.TypeAttributes) peFile.B.ReadUInt32(); 508peFile.B.ReadUInt32(); // Flags 522UInt32 rva = peFile.B.ReadUInt32(); 523UInt16 implFlags = peFile.B.ReadUInt16(); // MethodImplAttributes 524System.Reflection.MethodAttributes attrs = (System.Reflection.MethodAttributes)peFile.B.ReadUInt16(); // Flags - MethodAttributes