C# Class TUP.AsmResolver.Offset

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

Méthodes publiques

Méthode 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

Méthode Description
CreateConverter ( Win32Assembly assembly, ulong offset, int type ) : OffsetConverter

Method Details

FromFileOffset() public static méthode

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.
Résultat Offset

FromRva() public static méthode

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.
Résultat Offset

FromVa() public static méthode

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.
Résultat Offset

Offset() public méthode

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.
Résultat System

ToAsciiString() public méthode

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

ToAsciiStringPtr() public méthode

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

ToInstruction() public méthode

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

ToMethod() public méthode

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

ToString() public méthode

Returns a string representation of the offset value.
public ToString ( ) : string
Résultat string

ToString() public méthode

Returns a string representation of the offset value.
public ToString ( string format ) : string
format string
Résultat string