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>(); }
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); }