Class Allocator¶
Defined in File allocator.h
Class Documentation¶
-
class
Allocator
¶ Public Functions
-
size_t
alignedSize
(size_t size) const¶
-
void
throwAtReallocation
(bool throwRealloc)¶
-
void
reserve
(size_t bytes)¶
-
template<typename
T
>
size_tcapacity
(size_t num)¶
-
template<typename
T
>
MemoryPiece::PtrTypealloc
(size_t num)¶
-
MemoryPiece::PtrType
alloc
(size_t bytes)¶
-
bool
free
(uint8_t *ptr, size_t bytes)¶
-
bool
free
(MemoryPiece::PtrType mp)¶
-
void
clear
()¶
-
MemoryPiece::PtrType
memory
()¶
-
size_t
size
()¶
-
size_t
available
()¶
-
size_t