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

A class that is able to calculate different kinds of offsets.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FileOffsetToRva ( uint fileoffset ) : uint

Transforms a physical file offset to a relative virtual address.

FileOffsetToVa ( uint fileoffset ) : ulong

Transforms a physical file offset to a virtual address.

OffsetConverter ( Section targetSection ) : System

Creates a new instance of an offset converter.

OffsetConverter ( Win32Assembly assembly ) : System
RvaToFileOffset ( uint rva ) : uint

Transforms a relative virtual address to a physical file offset.

RvaToVa ( uint rva ) : ulong

Transforms a relative virtual address to a virtual address.

VaToFileOffset ( ulong va ) : uint

Transforms a virtual address to a physical file offset.

VaToRva ( ulong va ) : uint

Transforms a virtual address to a relative virtual address.

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

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

Transforms a physical file offset to a relative virtual address.
public FileOffsetToRva ( uint fileoffset ) : uint
fileoffset uint The physical file offset to convert.
Результат uint

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

Transforms a physical file offset to a virtual address.
public FileOffsetToVa ( uint fileoffset ) : ulong
fileoffset uint The physical file offset to convert.
Результат ulong

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

Creates a new instance of an offset converter.
public OffsetConverter ( Section targetSection ) : System
targetSection Section
Результат System

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

public OffsetConverter ( Win32Assembly assembly ) : System
assembly Win32Assembly
Результат System

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

Transforms a relative virtual address to a physical file offset.
public RvaToFileOffset ( uint rva ) : uint
rva uint The relative virtual address to convert.
Результат uint

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

Transforms a relative virtual address to a virtual address.
public RvaToVa ( uint rva ) : ulong
rva uint The relative virtual address to convert.
Результат ulong

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

Transforms a virtual address to a physical file offset.
public VaToFileOffset ( ulong va ) : uint
va ulong The virtual address to convert.
Результат uint

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

Transforms a virtual address to a relative virtual address.
public VaToRva ( ulong va ) : uint
va ulong The virtual address to convert.
Результат uint