C# Class TUP.AsmResolver.Offset

Represents an offset to a value or structure in an assembly, containing the raw, virtual and relative virtual address.
显示文件 Open project: Rex-Hays/GNIDA Class Usage Examples

Public Methods

Method Description
FromFileOffset ( uint rawoffset, Win32Assembly assembly ) : Offset

Creates an instance of an offset by specifying a raw offset.

FromRva ( uint rva, Win32Assembly assembly ) : Offset

Creates an instance of an offset by specifying a virtual address that is relative to a section.

FromVa ( ulong va, Win32Assembly assembly ) : Offset

Creates an instance of an offset by specifying a virtual address.

Offset ( uint offset, uint rva, ulong va ) : System

Creates a new instance of an offset.

ToAsciiString ( Win32Assembly assembly ) : string

Converts the offset to an Ascii string.

ToAsciiStringPtr ( Win32Assembly assembly ) : ulong

Converts the offset to an Ascii String pointer.

ToInstruction ( Win32Assembly assembly ) : x86Instruction

Converts the offset to an instruction.

ToMethod ( Win32Assembly assembly ) : IMethod

Converts the offset to an imported or exported method/

ToString ( ) : string

Returns a string representation of the offset value.

ToString ( string format ) : string

Returns a string representation of the offset value.

Private Methods

Method Description
CreateConverter ( Win32Assembly assembly, ulong offset, int type ) : OffsetConverter

Method Details

FromFileOffset() public static method

Creates an instance of an offset by specifying a raw offset.
public static FromFileOffset ( uint rawoffset, Win32Assembly assembly ) : Offset
rawoffset uint The file offset.
assembly Win32Assembly The assembly containing the offset.
return Offset

FromRva() public static method

Creates an instance of an offset by specifying a virtual address that is relative to a section.
public static FromRva ( uint rva, Win32Assembly assembly ) : Offset
rva uint The relative virtual address.
assembly Win32Assembly The assembly containing the offset.
return Offset

FromVa() public static method

Creates an instance of an offset by specifying a virtual address.
public static FromVa ( ulong va, Win32Assembly assembly ) : Offset
va ulong The virtual address.
assembly Win32Assembly The assembly containing the offset.
return Offset

Offset() public method

Creates a new instance of an offset.
public Offset ( uint offset, uint rva, ulong va ) : System
offset uint The raw offset.
rva uint The virtual address that is relative to a section.
va ulong The virtual address.
return System

ToAsciiString() public method

Converts the offset to an Ascii string.
public ToAsciiString ( Win32Assembly assembly ) : string
assembly Win32Assembly The assembly that contains the offset
return string

ToAsciiStringPtr() public method

Converts the offset to an Ascii String pointer.
public ToAsciiStringPtr ( Win32Assembly assembly ) : ulong
assembly Win32Assembly The assembly that contains the offset
return ulong

ToInstruction() public method

Converts the offset to an instruction.
public ToInstruction ( Win32Assembly assembly ) : x86Instruction
assembly Win32Assembly The assembly that contains the offset
return TUP.AsmResolver.ASM.x86Instruction

ToMethod() public method

Converts the offset to an imported or exported method/
public ToMethod ( Win32Assembly assembly ) : IMethod
assembly Win32Assembly The assembly that contains the offset
return IMethod

ToString() public method

Returns a string representation of the offset value.
public ToString ( ) : string
return string

ToString() public method

Returns a string representation of the offset value.
public ToString ( string format ) : string
format string
return string