コード例 #1
0
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     m_binaryWriter.Write(header.Machine);
     m_binaryWriter.Write(header.NumberOfSections);
     m_binaryWriter.Write(header.TimeDateStamp);
     m_binaryWriter.Write(header.PointerToSymbolTable);
     m_binaryWriter.Write(header.NumberOfSymbols);
     m_binaryWriter.Write(header.OptionalHeaderSize);
     m_binaryWriter.Write((ushort)header.Characteristics);
 }
コード例 #2
0
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     header.Machine              = m_binaryReader.ReadUInt16();
     header.NumberOfSections     = m_binaryReader.ReadUInt16();
     header.TimeDateStamp        = m_binaryReader.ReadUInt32();
     header.PointerToSymbolTable = m_binaryReader.ReadUInt32();
     header.NumberOfSymbols      = m_binaryReader.ReadUInt32();
     header.OptionalHeaderSize   = m_binaryReader.ReadUInt16();
     header.Characteristics      = (Mono.Cecil.Binary.ImageCharacteristics)m_binaryReader.ReadUInt16();
 }
コード例 #3
0
 internal Image()
 {
     m_dosHeader          = new DOSHeader();
     m_peFileHeader       = new PEFileHeader();
     m_peOptionalHeader   = new PEOptionalHeader();
     m_sections           = new SectionCollection();
     m_importAddressTable = new ImportAddressTable();
     m_importTable        = new ImportTable();
     m_importLookupTable  = new ImportLookupTable();
     m_hintNameTable      = new HintNameTable();
     m_mdRoot             = new MetadataRoot(this);
 }
コード例 #4
0
ファイル: Image.cs プロジェクト: NALSS/Telegraph
 internal Image()
 {
     m_dosHeader = new DOSHeader ();
     m_peFileHeader = new PEFileHeader ();
     m_peOptionalHeader = new PEOptionalHeader ();
     m_sections = new SectionCollection ();
     m_importAddressTable = new ImportAddressTable ();
     m_importTable = new ImportTable ();
     m_importLookupTable = new ImportLookupTable ();
     m_hintNameTable = new HintNameTable ();
     m_mdRoot = new MetadataRoot (this);
 }
コード例 #5
0
ファイル: ImageReader.cs プロジェクト: sidecut/xaeios
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     header.Machine = m_binaryReader.ReadUInt16 ();
     header.NumberOfSections = m_binaryReader.ReadUInt16 ();
     header.TimeDateStamp = m_binaryReader.ReadUInt32 ();
     header.PointerToSymbolTable = m_binaryReader.ReadUInt32 ();
     header.NumberOfSymbols = m_binaryReader.ReadUInt32 ();
     header.OptionalHeaderSize = m_binaryReader.ReadUInt16 ();
     header.Characteristics = (ImageCharacteristics) m_binaryReader.ReadUInt16 ();
 }
コード例 #6
0
ファイル: ImageInitializer.cs プロジェクト: NALSS/Telegraph
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     header.SetDefaultValues ();
     header.TimeDateStamp = TimeDateStampFromEpoch ();
 }
コード例 #7
0
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     header.SetDefaultValues();
     header.TimeDateStamp = TimeDateStampFromEpoch();
 }
コード例 #8
0
ファイル: ImageWriter.cs プロジェクト: sidecut/xaeios
 public override void VisitPEFileHeader(PEFileHeader header)
 {
     m_binaryWriter.Write (header.Machine);
     m_binaryWriter.Write (header.NumberOfSections);
     m_binaryWriter.Write (header.TimeDateStamp);
     m_binaryWriter.Write (header.PointerToSymbolTable);
     m_binaryWriter.Write (header.NumberOfSymbols);
     m_binaryWriter.Write (header.OptionalHeaderSize);
     m_binaryWriter.Write ((ushort) header.Characteristics);
 }