17#ifndef IOX_POSH_ROUDI_MEMORY_MEMORY_BLOCK_HPP
18#define IOX_POSH_ROUDI_MEMORY_MEMORY_BLOCK_HPP
20#include "iceoryx_hoofs/cxx/helplets.hpp"
21#include "iceoryx_hoofs/cxx/optional.hpp"
51 virtual uint64_t
size() const noexcept = 0;
61 cxx::optional<
void*>
memory() const noexcept;
74 void* m_memory{
nullptr};
The MemoryBlock is a container for general purpose memory. It is used to request some memory from a M...
Definition: memory_block.hpp:34
virtual uint64_t size() const noexcept=0
This function provides the size of the required memory for the underlying data. It is needed for the ...
cxx::optional< void * > memory() const noexcept
This function provides the pointer to the requested memory.
virtual void destroy() noexcept=0
The MemoryProvider calls this either when MemoryProvider::destroy is called or in its destructor.
MemoryBlock(const MemoryBlock &)=delete
virtual uint64_t alignment() const noexcept=0
This function provides the alignment of the memory for the underlying data. This information is neede...
virtual void onMemoryAvailable(cxx::not_null< void * > memory) noexcept
This function is called once the memory is available and is therefore the earliest possibility to use...
This class creates memory which is requested by the MemoryBlocks. Once the memory is available,...
Definition: memory_provider.hpp:69