Skip to content

Latest commit

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

GMem

A memory management tool for C# which is

  1. Very lightweight - GMem has only a few tiny functions and 2 objects
  2. Generic - You don't deal with data conversions and you don't have to call different functions for every data type.
  3. Object oriented - So that what makes your life easier doesn't make your code look bad.
  4. Extendable - I tried to keep the code as simple as i can so that you can extend it for your own work.

GMem is also on NuGet

More information here: https://www.nuget.org/packages/GMem/

How to use ?

// Get an instance of GMemProcess.GMemProcessgProc=newGMemProcess("processname","ModuleName");/* ptrObject object holds; calculated address is (modulebase + pointer address) + offsets or direct address if its not a pointer. processHandle is the handle pointer of your process You can create a ptrObject like below */ptrObjectobj=gProc.create_ptr_object(0xFFFFFFFF,int[]{0xFF,0x10});/* Reads and writes are so simple. GMem supports almost all types that you might need. */// Readintintvalue=gProc.read<int>(obj);// WriteintvalueToWrite=50;booliswritten=gProc.write<int>(obj,valueToWrite);// If you want to read string or array of bytesintstringlength=10;stringtext=gProc.read<string>(obj,stringlength);// orintbyteLength=10;byte[]dataBuffer=gProc.read<byte[]>(obj,10);

How to test ?

Tests for this solution were done on steam version of Torchlight 2. There are further information on test documents.

#Stage - Completed

About

A very lightweight and generic memory editing tool for C#

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages