RAMvader  1.4
A .NET library which provides access to other processes' memory space.
RAMvader.ModuleOffsetMemoryAddress Class Reference

A specialization for the MemoryAddress class, used to represent addresses that are calculated as offsets from a given module of the process to which the Target is attached. More...

Inherits RAMvader.MemoryAddress.

Public Member Functions

 ModuleOffsetMemoryAddress (Target target, String moduleName, int offset)
 Constructor. More...
 

Protected Member Functions

override IntPtr GetRealAddress ()
 Specialized by subclasses to calculate the real address associated with the MemoryAddress object. More...
 

Additional Inherited Members

- Properties inherited from RAMvader.MemoryAddress
IntPtr Address [get]
 Retrieves the real/calculated address represented by the MemoryAddress object. More...
 

Detailed Description

A specialization for the MemoryAddress class, used to represent addresses that are calculated as offsets from a given module of the process to which the Target is attached.

Constructor & Destructor Documentation

◆ ModuleOffsetMemoryAddress()

RAMvader.ModuleOffsetMemoryAddress.ModuleOffsetMemoryAddress ( Target  target,
String  moduleName,
int  offset 
)

Constructor.

Parameters
targetA reference to the object used to access the target Process' address space.
moduleNameThe name of the module whose base address will be used to calculate the final (real) address.
offsetThe offset to apply to the base of the given module in order to find the final (real) address.

Member Function Documentation

◆ GetRealAddress()

override IntPtr RAMvader.ModuleOffsetMemoryAddress.GetRealAddress ( )
protectedvirtual

Specialized by subclasses to calculate the real address associated with the MemoryAddress object.

Returns
Returns an IntPtr representing the real/calculated address associated to the MemoryAddress instance.

Implements RAMvader.MemoryAddress.