internal ImportExportWriter(PEWriter writer)
 {
     Writer                = writer;
     exportDirectory       = Writer.OriginalAssembly.NTHeader.OptionalHeader.DataDirectories[(int)DataDirectoryName.Export];
     importDirectory       = Writer.OriginalAssembly.NTHeader.OptionalHeader.DataDirectories[(int)DataDirectoryName.Import];
     importOffsetConverter = new OffsetConverter(importDirectory.targetSection);
 }
 internal MethodBodyWriter(PEWriter writer)
 {
     Writer = writer;
 }
 internal ResourceWriter(PEWriter writer)
 {
     Writer            = writer;
     resourceDirectory = Writer.OriginalAssembly.NTHeader.OptionalHeader.DataDirectories[(int)DataDirectoryName.Resource];
 }
Example #4
0
 internal DataDirectoryWriter(PEWriter writer)
 {
     Writer = writer;
 }
 internal SectionWriter(PEWriter writer)
 {
     Writer = writer;
 }
Example #6
0
 internal ManagedDataWriter(PEWriter writer)
 {
     Writer       = writer;
     clrDirectory = Writer.OriginalAssembly.NTHeader.OptionalHeader.DataDirectories[(int)DataDirectoryName.Clr];
 }
Example #7
0
 internal PEReconstructor(PEWriter writer)
 {
     Writer = writer;
 }
 internal PEHeaderWriter(PEWriter writer)
 {
     Writer = writer;
 }