diff options
author | Jackson Harper <jackson@novell.com> | 2003-02-23 03:03:30 +0300 |
---|---|---|
committer | Jackson Harper <jackson@novell.com> | 2003-02-23 03:03:30 +0300 |
commit | 0b7e7031c5cea62791d7366b9b2d8680eedb5fa4 (patch) | |
tree | ec615993db46b6ae66f059cf1af1754710a7bcc0 /mcs/class/Mono.PEToolkit/Image.cs | |
parent | 4b6f996569c750b3f8ec80cfb22bf0b60a51549d (diff) |
* Image.cs: Write Sections
svn path=/trunk/mcs/; revision=11853
Diffstat (limited to 'mcs/class/Mono.PEToolkit/Image.cs')
-rw-r--r-- | mcs/class/Mono.PEToolkit/Image.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mcs/class/Mono.PEToolkit/Image.cs b/mcs/class/Mono.PEToolkit/Image.cs index 11b52318735..c31d9023592 100644 --- a/mcs/class/Mono.PEToolkit/Image.cs +++ b/mcs/class/Mono.PEToolkit/Image.cs @@ -150,10 +150,10 @@ namespace Mono.PEToolkit { coffHdr.Write (writer);
peHdr.Write (writer);
- /*
- int pos = reader.BaseStream.Position;
- ReadSections();
+ WriteSections (writer);
+
+ /*
if (this.IsCLI) {
reader.BaseStream.Position = RVAToVA(peHdr.CLIHdrDir.virtAddr);
@@ -165,7 +165,6 @@ namespace Mono.PEToolkit { }
*/
-
}
/// <summary>
@@ -185,6 +184,13 @@ namespace Mono.PEToolkit { }
}
+ protected void WriteSections (BinaryWriter writer)
+ {
+ foreach (Section section in sections.Values) {
+ section.Write (writer);
+ }
+ }
+
/// <summary>
/// </summary>
|