C# Класс TUP.AsmResolver.Offset

Represents an offset to a value or structure in an assembly, containing the raw, virtual and relative virtual address.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateConverter ( Win32Assembly assembly, ulong offset, int type ) : OffsetConverter

Описание методов

FromFileOffset() публичный статический Метод

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.
Результат Offset

FromRva() публичный статический Метод

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.
Результат Offset

FromVa() публичный статический Метод

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.
Результат Offset

Offset() публичный Метод

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.
Результат System

ToAsciiString() публичный Метод

Converts the offset to an Ascii string.
public ToAsciiString ( Win32Assembly assembly ) : string
assembly Win32Assembly The assembly that contains the offset
Результат string

ToAsciiStringPtr() публичный Метод

Converts the offset to an Ascii String pointer.
public ToAsciiStringPtr ( Win32Assembly assembly ) : ulong
assembly Win32Assembly The assembly that contains the offset
Результат ulong

ToInstruction() публичный Метод

Converts the offset to an instruction.
public ToInstruction ( Win32Assembly assembly ) : x86Instruction
assembly Win32Assembly The assembly that contains the offset
Результат TUP.AsmResolver.ASM.x86Instruction

ToMethod() публичный Метод

Converts the offset to an imported or exported method/
public ToMethod ( Win32Assembly assembly ) : IMethod
assembly Win32Assembly The assembly that contains the offset
Результат IMethod

ToString() публичный Метод

Returns a string representation of the offset value.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Returns a string representation of the offset value.
public ToString ( string format ) : string
format string
Результат string