#include <allocation.h>
Definition at line 15 of file allocation.h.
◆ Allocation()
impeller::Allocation::Allocation |
( |
| ) |
|
|
default |
◆ ~Allocation()
impeller::Allocation::~Allocation |
( |
| ) |
|
◆ GetBuffer()
uint8_t * impeller::Allocation::GetBuffer |
( |
| ) |
const |
◆ GetLength()
size_t impeller::Allocation::GetLength |
( |
| ) |
const |
◆ GetReservedLength()
size_t impeller::Allocation::GetReservedLength |
( |
| ) |
const |
◆ NextPowerOfTwoSize()
uint32_t impeller::Allocation::NextPowerOfTwoSize |
( |
uint32_t |
x | ) |
|
|
static |
Definition at line 41 of file allocation.cc.
41 {
43 return 1;
44 }
45
47
53
55}
◆ Truncate()
bool impeller::Allocation::Truncate |
( |
size_t |
length, |
|
|
bool |
npot = true |
|
) |
| |
Definition at line 32 of file allocation.cc.
32 {
33 const auto reserved = npot ? ReserveNPOT(
length) : Reserve(
length);
34 if (!reserved) {
35 return false;
36 }
38 return true;
39}
The documentation for this class was generated from the following files: