|
| Allocator (void *const startAddress, const uint64_t length) noexcept |
| A bump allocator for the memory provided in the ctor arguments. More...
|
|
| Allocator (const Allocator &)=delete |
|
| Allocator (Allocator &&) noexcept=default |
|
Allocator & | operator= (const Allocator &) noexcept=delete |
|
Allocator & | operator= (Allocator &&)=default |
|
void * | allocate (const uint64_t size, const uint64_t alignment) noexcept |
| allocates on the memory supplied with the ctor More...
|
|
|
static constexpr uint64_t | MEMORY_ALIGNMENT = 8U |
|
|
void | finalizeAllocation () noexcept |
|
◆ Allocator()
iox::posix::Allocator::Allocator |
( |
void *const |
startAddress, |
|
|
const uint64_t |
length |
|
) |
| |
|
noexcept |
A bump allocator for the memory provided in the ctor arguments.
- Parameters
-
[in] | startAddress | of the memory this allocator manages |
[in] | length | of the memory this allocator manages |
◆ allocate()
void* iox::posix::Allocator::allocate |
( |
const uint64_t |
size, |
|
|
const uint64_t |
alignment |
|
) |
| |
|
noexcept |
allocates on the memory supplied with the ctor
- Parameters
-
[in] | size | of the memory to allocate |
[in] | alignment | of the memory to allocate |
- Note
- terminates if out of memory of finalizeAllocation was called before
The documentation for this class was generated from the following file:
- iceoryx_utils/internal/posix_wrapper/shared_memory_object/allocator.hpp