#include <BuddyAllocator.hpp>
◆ PointerType
◆ BuddyAllocatorTraits()
castor::BuddyAllocatorTraits::BuddyAllocatorTraits |
( |
size_t | size | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
[in] | size | The allocator size. |
◆ getNull()
Block castor::BuddyAllocatorTraits::getNull |
( |
| ) |
const |
|
inline |
- Returns
- The null memory block.
Referenced by isNull().
◆ getOffset()
size_t castor::BuddyAllocatorTraits::getOffset |
( |
PointerType | pointer | ) |
const |
|
inline |
Retrieves the offset from a memory block.
- Parameters
-
[in] | pointer | The memory block. |
- Returns
- The offset.
◆ getPointer()
PointerType castor::BuddyAllocatorTraits::getPointer |
( |
uint32_t | offset | ) |
|
|
inline |
Creates a memory block.
- Parameters
-
[in] | offset | The block memory offset. |
- Returns
- The block.
◆ getSize()
size_t castor::BuddyAllocatorTraits::getSize |
( |
| ) |
const |
|
inline |
- Returns
- The allocator size.
◆ isNull()
bool castor::BuddyAllocatorTraits::isNull |
( |
PointerType | pointer | ) |
const |
|
inline |
The documentation for this struct was generated from the following file: