|
| | DynamicRegion (size_t capacity) |
| |
| | ~DynamicRegion () |
| |
| | Region (uint8_t *buf, size_t cap) |
| |
| uint8_t * | alloc (size_t size) |
| | Allocate a buffer with no alignment requirement.
|
| |
| uint8_t * | allocA (size_t size) |
| | Allocate a region aligned to multiple of sizeof(void*).
|
| |
| bool | free (const uint8_t *first, const uint8_t *last) |
| | Deallocate (part of) last allocated buffer.
|
| |
| bool | free (const uint8_t *ptr, size_t size) |
| |
| template<typename T , typename... Arg> |
| T * | make (Arg &&... arg) |
| | Allocate and create an item, and return its pointer.
|
| |
| template<typename RefType , typename... Arg> |
| RefType | create (Arg &&... arg) |
| | Allocate and create an object, and return its reference.
|
| |
| void | reset () |
| | Discard allocated items.
|
| |
| size_t | available () const |
| | Compute remaining space for alloc().
|
| |
| size_t | availableA () const |
| | Compute remaining space for allocA().
|
| |
| size_t | size () const |
| | Compute utilized space.
|
| |
Region with dynamically allocated memory.