C# Class Aries.CodeDOMCompiler

Datei anzeigen Open project: EAXrec/Aries

Public Methods

Method Description
Compile ( string InputSource, string OutputPE, string ResourceFile, bool icon ) : void

Use the C# Compiler to compile the resource 'LDRsource'. LDRsource used as a loader to run the stub

SetBytes ( byte bytes, bool fromFile ) : string

Return the size of a file (used when showing a file size in the debug panel)

pumpFile ( string FileName, long Bytes ) : void

Append bytes to the end of the file

Method Details

Compile() public static method

Use the C# Compiler to compile the resource 'LDRsource'. LDRsource used as a loader to run the stub
public static Compile ( string InputSource, string OutputPE, string ResourceFile, bool icon ) : void
InputSource string The C# source to be compiled (LDRsource)
OutputPE string File to save as
ResourceFile string The stub + file to bind with, added as a resource to the loader
icon bool Choose whether to compile it with a custom icon (icon.ico)
return void

SetBytes() public static method

Return the size of a file (used when showing a file size in the debug panel)
public static SetBytes ( byte bytes, bool fromFile ) : string
bytes byte File location if retrieving from a file on the HDD, or a byte array if not
fromFile bool Whether or not the parameter 'bytes' is a file on the HDD
return string

pumpFile() public static method

Append bytes to the end of the file
public static pumpFile ( string FileName, long Bytes ) : void
FileName string File to append bytes to
Bytes long number of bytes to append
return void