#include <allocation.h>
Public Member Functions | |
| Allocation () | |
| ~Allocation () | |
| uint8_t * | GetBuffer () const |
| size_t | GetLength () const |
| size_t | GetReservedLength () const |
| bool | Truncate (size_t length, bool npot=true) |
Static Public Member Functions | |
| static uint32_t | NextPowerOfTwoSize (uint32_t x) |
Definition at line 15 of file allocation.h.
|
default |
| impeller::Allocation::~Allocation | ( | ) |
Definition at line 17 of file allocation.cc.
| uint8_t * impeller::Allocation::GetBuffer | ( | ) | const |
Definition at line 21 of file allocation.cc.
Referenced by impeller::HostBuffer::Emplace(), impeller::ProcTableGLES::GetProgramInfoLogString(), impeller::ArchiveStatement::ReadValue(), and impeller::ArchiveStatement::WriteValue().
| size_t impeller::Allocation::GetLength | ( | ) | const |
Definition at line 25 of file allocation.cc.
Referenced by impeller::HostBuffer::Emplace(), and impeller::ArchiveStatement::WriteValue().
| size_t impeller::Allocation::GetReservedLength | ( | ) | const |
Definition at line 29 of file allocation.cc.
Referenced by impeller::HostBuffer::GetSize().
|
static |
Definition at line 42 of file allocation.cc.
Referenced by impeller::scene::Skin::GetJointsTexture(), and impeller::OptimumAtlasSizeForFontGlyphPairs().
| bool impeller::Allocation::Truncate | ( | size_t | length, |
| bool | npot = true |
||
| ) |
Definition at line 33 of file allocation.cc.
Referenced by impeller::HostBuffer::Emplace(), impeller::ProcTableGLES::GetProgramInfoLogString(), impeller::ArchiveStatement::ReadValue(), and impeller::HostBuffer::Reset().