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