Initial Commit

This commit is contained in:
Sajid
2024-09-30 12:06:17 +06:00
commit db51236165
42 changed files with 4843 additions and 0 deletions
+21
View File
@@ -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;