C# Class Artemis.Utilities.Memory.Memory

Represents an access to a remote process memory
Inheritance: IDisposable
Afficher le fichier Open project: SpoinkyNL/Artemis

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
FindModule ( string name ) : ProcessModule

Finds module with the given name

GetAddressOffsets ( string address ) : int[]

Gets address offsets

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FindModule() protected méthode

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

GetAddress() public méthode

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

GetAddress() public méthode

Gets address pointer
public GetAddress ( string address ) : IntPtr
address string Address
Résultat System.IntPtr

GetAddress() public méthode

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
Résultat System.IntPtr

GetAddressOffsets() protected static méthode

Gets address offsets
protected static GetAddressOffsets ( string address ) : int[]
address string Address
Résultat int[]

GetAddressX64() public méthode

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

GetAddressX64() public méthode

Gets address pointer
public GetAddressX64 ( string address ) : IntPtr
address string Address
Résultat System.IntPtr

GetAddressX64() public méthode

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
Résultat System.IntPtr

Memory() public méthode

Initializes a new instance of the Memory
public Memory ( System process ) : System
process System Remote process
Résultat System

ReadDouble() public méthode

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

ReadFloat() public méthode

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

ReadInt32() public méthode

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

ReadInt64() public méthode

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

ReadMemory() public méthode

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
Résultat void

ReadUInt32() public méthode

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

WriteDouble() public méthode

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

WriteFloat() public méthode

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

WriteInt32() public méthode

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

WriteMemory() public méthode

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
Résultat void

WriteUInt32() public méthode

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