21 lines
421 B
C++
21 lines
421 B
C++
#ifndef MEMORY_HPP
|
|
#define MEMORY_HPP
|
|
|
|
class Memory{
|
|
|
|
public:
|
|
|
|
static void* allocateMemory(unsigned long size);
|
|
|
|
static void* allocateExecutableMemory(unsigned long size);
|
|
|
|
static void* allocateHugePage(unsigned long size);
|
|
|
|
static int setPremission(void* page,unsigned long size, unsigned int permission);
|
|
|
|
static int releaseMemory(void* mem, unsigned long size);
|
|
|
|
};
|
|
|
|
#endif
|