Generic buddy allocator.
More...
#include <Allocator.hpp>
Generic buddy allocator.
Used by GlobalAllocator to implement global heap.
Definition at line 98 of file Allocator.hpp.
Allocator::Allocator |
( |
void * |
base, |
|
|
int64_t |
size |
|
) |
| |
|
inline |
std::ostream& Allocator::dump |
( |
std::ostream & |
o = std::cout | ) |
const |
|
inline |
void Allocator::free |
( |
void * |
void_address | ) |
|
|
inline |
Free a previously-allocated chunk.
Definition at line 209 of file Allocator.hpp.
void* Allocator::malloc |
( |
size_t |
size | ) |
|
|
inline |
int64_t Allocator::num_chunks |
( |
| ) |
const |
|
inline |
int64_t Allocator::total_bytes |
( |
| ) |
const |
|
inline |
int64_t Allocator::total_bytes_free |
( |
| ) |
const |
|
inline |
int64_t Allocator::total_bytes_in_use |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: