srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
303 stars 45 forks source link

Update __init__ with class method #37

Closed smltr closed 2 years ago

smltr commented 3 years ago

Added method read_int_offset(self, address, *args)

This method will take a base address and a list of offset values. It will iterate through the list, starting by reading the value of the base address + first offset, then it will take that value returned and add next offset and read again until list is complete.

I wanted to add this method because while using pymem I found myself having to create it so I thought others might find it useful. Something similar could be used for other methods.