public CoffFileHeader(PeInfoReader reader)
 {
     PeSignature          = reader.ReadString(4, Encoding.ASCII);
     Machine              = reader.ReadWordAsEnum <MachineTypes>();
     NumberOfSections     = reader.ReadWord();
     TimeDateStamp        = reader.ReadDWord();
     PointerToSymbolTable = reader.ReadDWord();
     NumberOfSymbols      = reader.ReadDWord();
     SizeOfOptionalHeader = reader.ReadWord();
     Characteristics      = reader.ReadWordAsEnum <Characteristics>();
 }
Beispiel #2
0
 public CorMetaHeader(PeInfoReader reader)
 {
     Size = reader.ReadDWord();
     MajorRuntimeVersion = reader.ReadWord();
     MinorRuntimeVersion = reader.ReadWord();
     MetaData            = new DataDirectory(reader);
     Flags = reader.ReadDWordAsEnum <CorFlags>();
     EntryPointVirtualAddress = reader.ReadDWord();
     Resources               = new DataDirectory(reader);
     StrongNameSignature     = new DataDirectory(reader);
     CodeManagerTable        = new DataDirectory(reader);
     VTableFixups            = new DataDirectory(reader);
     ExportAddressTableJumps = new DataDirectory(reader);
     ManagedNativeHeader     = new DataDirectory(reader);
 }
Beispiel #3
0
 public SectionHeader(PeInfoReader reader)
 {
     Name                 = reader.ReadString(8, Encoding.UTF8);
     VirtualSize          = reader.ReadDWord();
     VirtualAddress       = reader.ReadDWord();
     SizeOfRawData        = reader.ReadDWord();
     PointerToRawData     = reader.ReadDWord();
     PointerToRelocations = reader.ReadDWord();
     PointerToLinenumbers = reader.ReadDWord();
     NumberOfRelocations  = reader.ReadWord();
     NumberOfLinenumbers  = reader.ReadWord();
     Characteristics      = reader.ReadDWordAsEnum <SectionFlags>();
 }