#include <allocator.hpp>
Definition at line 21 of file allocator.hpp.
◆ bounded_allocator() [1/2]
sysio::vm::bounded_allocator::bounded_allocator |
( |
size_t | size | ) |
|
|
inline |
Definition at line 23 of file allocator.hpp.
23 {
26 }
std::unique_ptr< uint8_t[]> raw
◆ bounded_allocator() [2/2]
sysio::vm::bounded_allocator::bounded_allocator |
( |
size_t | size | ) |
|
|
inline |
◆ alloc() [1/2]
T * sysio::vm::bounded_allocator::alloc |
( |
size_t | size = 1 | ) |
|
|
inline |
Definition at line 28 of file allocator.hpp.
28 {
31 index +=
sizeof(
T) * size;
33 }
#define T(meth, val, expected)
#define SYS_VM_ASSERT(expr, exc_type, msg)
◆ alloc() [2/2]
T * sysio::vm::bounded_allocator::alloc |
( |
size_t | size = 1 | ) |
|
|
inline |
Definition at line 28 of file allocator.hpp.
28 {
31 index +=
sizeof(
T) * size;
33 }
◆ free() [1/2]
void sysio::vm::bounded_allocator::free |
( |
| ) |
|
|
inline |
◆ free() [2/2]
void sysio::vm::bounded_allocator::free |
( |
| ) |
|
|
inline |
◆ reclaim() [1/2]
void sysio::vm::bounded_allocator::reclaim |
( |
const T * | ptr, |
|
|
size_t | size = 0 ) |
|
inline |
◆ reclaim() [2/2]
void sysio::vm::bounded_allocator::reclaim |
( |
const T * | ptr, |
|
|
size_t | size = 0 ) |
|
inline |
◆ reset() [1/2]
void sysio::vm::bounded_allocator::reset |
( |
| ) |
|
|
inline |
◆ reset() [2/2]
void sysio::vm::bounded_allocator::reset |
( |
| ) |
|
|
inline |
◆ index
size_t sysio::vm::bounded_allocator::index = 0 |
◆ mem_size
size_t sysio::vm::bounded_allocator::mem_size |
◆ raw
std::unique_ptr< uint8_t[]> sysio::vm::bounded_allocator::raw |
The documentation for this class was generated from the following files: