C# Class TUP.AsmResolver.OffsetConverter

A class that is able to calculate different kinds of offsets.
Mostrar archivo Open project: Rex-Hays/GNIDA Class Usage Examples

Public Methods

Method Description
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.

Method Details

FileOffsetToRva() public method

Transforms a physical file offset to a relative virtual address.
public FileOffsetToRva ( uint fileoffset ) : uint
fileoffset uint The physical file offset to convert.
return uint

FileOffsetToVa() public method

Transforms a physical file offset to a virtual address.
public FileOffsetToVa ( uint fileoffset ) : ulong
fileoffset uint The physical file offset to convert.
return ulong

OffsetConverter() public method

Creates a new instance of an offset converter.
public OffsetConverter ( Section targetSection ) : System
targetSection Section
return System

OffsetConverter() public method

public OffsetConverter ( Win32Assembly assembly ) : System
assembly Win32Assembly
return System

RvaToFileOffset() public method

Transforms a relative virtual address to a physical file offset.
public RvaToFileOffset ( uint rva ) : uint
rva uint The relative virtual address to convert.
return uint

RvaToVa() public method

Transforms a relative virtual address to a virtual address.
public RvaToVa ( uint rva ) : ulong
rva uint The relative virtual address to convert.
return ulong

VaToFileOffset() public method

Transforms a virtual address to a physical file offset.
public VaToFileOffset ( ulong va ) : uint
va ulong The virtual address to convert.
return uint

VaToRva() public method

Transforms a virtual address to a relative virtual address.
public VaToRva ( ulong va ) : uint
va ulong The virtual address to convert.
return uint