mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-16 23:10:02 -04:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
class Memory
|
||||
{
|
||||
public:
|
||||
char* base{};
|
||||
size_t size{};
|
||||
size_t guestBase{};
|
||||
|
||||
Memory(void* address, size_t size);
|
||||
|
||||
void* Alloc(size_t offset, size_t size, uint32_t type);
|
||||
|
||||
void* Commit(size_t offset, size_t size);
|
||||
void* Reserve(size_t offset, size_t size);
|
||||
|
||||
void* Translate(size_t offset) const noexcept;
|
||||
uint32_t MapVirtual(void* host) const noexcept;
|
||||
};
|
||||
|
||||
extern Memory gMemory;
|
||||
Reference in New Issue
Block a user