Dota2Patcher
 
Загрузка...
Поиск...
Не найдено
Класс Memory

#include <Memory.h>

Классы

struct  ModuleInfo
 

Открытые статические члены

static bool load_modules (const DWORD process_ID)
 
static optional< uintptr_tpattern_scan (const string &target_module, const string &target_pattern)
 
static bool patch (const uintptr_t &patch_addr, const PATCH_TYPE patch_type, const optional< string > &replace_str=nullopt)
 
template<typename T , typename N >
static optional< Tabsolute_address (const N &instruction_ptr, const ASM_TYPE instr_type=ASM_TYPE::LEA)
 
template<typename T , typename N >
static optional< Tvirtual_function (const N &vmt, const int function_index)
 
template<typename T , typename N >
static optional< T > read_memory (const N &address)
 
template<typename T , typename N >
static bool write_memory (const N &address, const T &value)
 
template<typename T >
static void write_string (const T &address, const string &text)
 
template<typename T >
static optional< stringread_string (const T &address, const size_t max_length=64)
 
template<typename T >
static bool is_valid_ptr (const T &ptr)
 
template<typename T >
static int count_vms (const T &vmt)
 

Статические открытые данные

static std::unordered_map< string, ModuleInfoloaded_modules
 

Методы

◆ absolute_address()

template<typename T , typename N >
static optional< T > Memory::absolute_address ( const N instruction_ptr,
const ASM_TYPE  instr_type = ASM_TYPE::LEA 
)
inlinestatic

◆ count_vms()

template<typename T >
static int Memory::count_vms ( const T vmt)
inlinestatic

◆ is_valid_ptr()

template<typename T >
static bool Memory::is_valid_ptr ( const T ptr)
inlinestatic

◆ load_modules()

bool Memory::load_modules ( const DWORD  process_ID)
static

◆ patch()

bool Memory::patch ( const uintptr_t patch_addr,
const PATCH_TYPE  patch_type,
const optional< string > &  replace_str = nullopt 
)
static

◆ pattern_scan()

optional< uintptr_t > Memory::pattern_scan ( const string target_module,
const string target_pattern 
)
static

◆ read_memory()

template<typename T , typename N >
static optional< T > Memory::read_memory ( const N &  address)
inlinestatic

◆ read_string()

template<typename T >
static optional< string > Memory::read_string ( const T address,
const size_t  max_length = 64 
)
inlinestatic

◆ virtual_function()

template<typename T , typename N >
static optional< T > Memory::virtual_function ( const N vmt,
const int  function_index 
)
inlinestatic

◆ write_memory()

template<typename T , typename N >
static bool Memory::write_memory ( const N address,
const T value 
)
inlinestatic

◆ write_string()

template<typename T >
static void Memory::write_string ( const T address,
const string text 
)
inlinestatic

Данные класса

◆ loaded_modules

std::unordered_map< string, Memory::ModuleInfo > Memory::loaded_modules
static

Объявления и описания членов классов находятся в файлах: