mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
16 lines
199 B
C++
16 lines
199 B
C++
#include <memory.hpp>
|
|
|
|
namespace Memory
|
|
{
|
|
SmartHeap::SmartHeap(size_t Size)
|
|
{
|
|
this->Object = kmalloc(Size);
|
|
this->ObjectSize = Size;
|
|
}
|
|
|
|
SmartHeap::~SmartHeap()
|
|
{
|
|
kfree(this->Object);
|
|
}
|
|
}
|