Added default constructor to Allocator
This commit is contained in:
@@ -20,6 +20,11 @@ inline size_t ilog2(size_t n)
|
||||
return count - (isPowerOfTwo ? 1 : 0);
|
||||
}
|
||||
|
||||
kernel::Allocator::Allocator()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
kernel::Allocator::Allocator(void* base, size_t heapSize, size_t blockSize)
|
||||
{
|
||||
this->base = (char*) base;
|
||||
|
||||
@@ -10,6 +10,8 @@ class Allocator
|
||||
{
|
||||
public:
|
||||
|
||||
Allocator();
|
||||
|
||||
/**
|
||||
* @param base A pointer to the start of the heap.
|
||||
* @param heapSize The size of the heap, in bytes. Must be a power of two.
|
||||
|
||||
Reference in New Issue
Block a user