C# Class Inazuma.Mono.Cecil.PE.ImageWriter

Inheritance: BinaryStreamWriter
Show file Open project: mayuki/Inazuma Class Usage Examples

Public Methods

Method Description
CreateWriter ( ModuleDefinition module, MetadataBuilder metadata, Stream stream ) : ImageWriter
GetHeaderSize ( ) : uint
GetStrongNameSignatureDirectory ( ) : DataDirectory
WriteImage ( ) : void

Private Methods

Method Description
Align ( uint value, uint align ) : uint
BuildSections ( ) : void
BuildTextMap ( ) : TextMap
CreateSection ( string name, uint size, Section previous ) : Section
GetDebugHeader ( ) : void
GetImageResourceSection ( ) : Section
GetMachine ( ) : ushort
GetMetadataHeaderLength ( ) : int
GetMetadataLength ( ) : uint
GetRuntimeMain ( ) : byte[]
GetSimpleString ( string @string ) : byte[]
GetStartupStubLength ( ) : uint
GetStreamCount ( ) : ushort
GetString ( string @string, int length ) : byte[]
GetStrongNameLength ( ) : int
GetSubSystem ( ) : ushort
GetWin32Resources ( ) : void
GetZeroTerminatedString ( string @string ) : byte[]
ImageWriter ( ModuleDefinition module, MetadataBuilder metadata, Stream stream ) : System
LastSection ( ) : Section
MoveTo ( uint pointer ) : void
MoveToRVA ( Section section, UInt32 rva ) : void
MoveToRVA ( TextSegment segment ) : void
PatchResourceDataEntry ( ByteBuffer resources ) : void
PatchResourceDirectoryEntry ( ByteBuffer resources ) : void
PatchResourceDirectoryTable ( ByteBuffer resources ) : void
PatchWin32Resources ( ByteBuffer resources ) : void
PrepareSection ( Section section ) : void
WriteDOSHeader ( ) : void
WriteDebugDirectory ( ) : void
WriteGuidHeap ( ) : void
WriteHeap ( TextSegment heap, HeapBuffer buffer ) : void
WriteImportDirectory ( ) : void
WriteMetadata ( ) : void
WriteMetadataHeader ( ) : void
WriteOptionalHeaders ( ) : void
WritePEFileHeader ( ) : void
WriteRVA ( UInt32 rva ) : void
WriteReloc ( ) : void
WriteRsrc ( ) : void
WriteSection ( Section section, uint characteristics ) : void
WriteSectionHeaders ( ) : void
WriteStartupStub ( ) : void
WriteStreamHeader ( uint &offset, TextSegment heap, string name ) : void
WriteText ( ) : void
WriteZeroDataDirectory ( ) : void

Method Details

CreateWriter() public static method

public static CreateWriter ( ModuleDefinition module, MetadataBuilder metadata, Stream stream ) : ImageWriter
module ModuleDefinition
metadata MetadataBuilder
stream Stream
return ImageWriter

GetHeaderSize() public method

public GetHeaderSize ( ) : uint
return uint

GetStrongNameSignatureDirectory() public method

public GetStrongNameSignatureDirectory ( ) : DataDirectory
return DataDirectory

WriteImage() public method

public WriteImage ( ) : void
return void