libnative-utilities/include/memory/Memory.hpp
2024-08-15 18:40:30 +08:00

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