C# Class Artemis.Utilities.Memory.Memory

Represents an access to a remote process memory
Inheritance: IDisposable
显示文件 Open project: SpoinkyNL/Artemis

Public Methods

Method Description
Dispose ( ) : void
GetAddress ( IntPtr baseAddress, int offsets ) : IntPtr

Gets address

GetAddress ( string address ) : IntPtr

Gets address pointer

GetAddress ( string moduleName, IntPtr baseAddress, int offsets ) : IntPtr

Gets module based address

GetAddressX64 ( IntPtr baseAddress, int offsets ) : IntPtr

Gets address

GetAddressX64 ( string address ) : IntPtr

Gets address pointer

GetAddressX64 ( string moduleName, IntPtr baseAddress, int offsets ) : IntPtr

Gets module based address

Memory ( System process ) : System

Initializes a new instance of the Memory

ReadDouble ( IntPtr address ) : double

Reads double precision value at the address

ReadFloat ( IntPtr address ) : float

Reads single precision value at the address

ReadInt32 ( IntPtr address ) : int

Reads 32 bit signed integer at the address

ReadInt64 ( IntPtr address ) : long

Reads 32 bit signed integer at the address

ReadMemory ( IntPtr address, byte buffer, int size ) : void

Reads memory at the address

ReadUInt32 ( IntPtr address ) : uint

Reads 32 bit unsigned integer at the address

WriteDouble ( IntPtr address, double value ) : void

Writes double precision value at the address

WriteFloat ( IntPtr address, float value ) : void

Writes single precision value at the address

WriteInt32 ( IntPtr address, int value ) : void

Writes 32 bit signed integer at the address

WriteMemory ( IntPtr address, byte buffer, int size ) : void

Writes memory at the address

WriteUInt32 ( IntPtr address, uint value ) : void

Writes 32 bit unsigned integer at the address

Protected Methods

Method Description
FindModule ( string name ) : ProcessModule

Finds module with the given name

GetAddressOffsets ( string address ) : int[]

Gets address offsets

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FindModule() protected method

Finds module with the given name
protected FindModule ( string name ) : ProcessModule
name string Module name
return System.Diagnostics.ProcessModule

GetAddress() public method

Gets address
public GetAddress ( IntPtr baseAddress, int offsets ) : IntPtr
baseAddress System.IntPtr Base address
offsets int Collection of offsets
return System.IntPtr

GetAddress() public method

Gets address pointer
public GetAddress ( string address ) : IntPtr
address string Address
return System.IntPtr

GetAddress() public method

Gets module based address
public GetAddress ( string moduleName, IntPtr baseAddress, int offsets ) : IntPtr
moduleName string Module name
baseAddress System.IntPtr Base address
offsets int Collection of offsets
return System.IntPtr

GetAddressOffsets() protected static method

Gets address offsets
protected static GetAddressOffsets ( string address ) : int[]
address string Address
return int[]

GetAddressX64() public method

Gets address
public GetAddressX64 ( IntPtr baseAddress, int offsets ) : IntPtr
baseAddress System.IntPtr Base address
offsets int Collection of offsets
return System.IntPtr

GetAddressX64() public method

Gets address pointer
public GetAddressX64 ( string address ) : IntPtr
address string Address
return System.IntPtr

GetAddressX64() public method

Gets module based address
public GetAddressX64 ( string moduleName, IntPtr baseAddress, int offsets ) : IntPtr
moduleName string Module name
baseAddress System.IntPtr Base address
offsets int Collection of offsets
return System.IntPtr

Memory() public method

Initializes a new instance of the Memory
public Memory ( System process ) : System
process System Remote process
return System

ReadDouble() public method

Reads double precision value at the address
public ReadDouble ( IntPtr address ) : double
address System.IntPtr Memory address
return double

ReadFloat() public method

Reads single precision value at the address
public ReadFloat ( IntPtr address ) : float
address System.IntPtr Memory address
return float

ReadInt32() public method

Reads 32 bit signed integer at the address
public ReadInt32 ( IntPtr address ) : int
address System.IntPtr Memory address
return int

ReadInt64() public method

Reads 32 bit signed integer at the address
public ReadInt64 ( IntPtr address ) : long
address System.IntPtr Memory address
return long

ReadMemory() public method

Reads memory at the address
public ReadMemory ( IntPtr address, byte buffer, int size ) : void
address System.IntPtr Memory address
buffer byte Buffer
size int Size in bytes
return void

ReadUInt32() public method

Reads 32 bit unsigned integer at the address
public ReadUInt32 ( IntPtr address ) : uint
address System.IntPtr Memory address
return uint

WriteDouble() public method

Writes double precision value at the address
public WriteDouble ( IntPtr address, double value ) : void
address System.IntPtr Memory address
value double Value
return void

WriteFloat() public method

Writes single precision value at the address
public WriteFloat ( IntPtr address, float value ) : void
address System.IntPtr Memory address
value float Value
return void

WriteInt32() public method

Writes 32 bit signed integer at the address
public WriteInt32 ( IntPtr address, int value ) : void
address System.IntPtr Memory address
value int Value
return void

WriteMemory() public method

Writes memory at the address
public WriteMemory ( IntPtr address, byte buffer, int size ) : void
address System.IntPtr Memory address
buffer byte Buffer
size int Size in bytes
return void

WriteUInt32() public method

Writes 32 bit unsigned integer at the address
public WriteUInt32 ( IntPtr address, uint value ) : void
address System.IntPtr Memory address
value uint Value
return void