mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-09 06:19:19 +00:00
Update kernel
This commit is contained in:
15
Core/Memory/SmartHeap.cpp
Normal file
15
Core/Memory/SmartHeap.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include <memory.hpp>
|
||||
|
||||
namespace Memory
|
||||
{
|
||||
SmartHeap::SmartHeap(size_t Size)
|
||||
{
|
||||
this->Object = kmalloc(Size);
|
||||
this->ObjectSize = Size;
|
||||
}
|
||||
|
||||
SmartHeap::~SmartHeap()
|
||||
{
|
||||
kfree(this->Object);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user