Skip to content

API · fair::mq

MemoryResourceclass

#include <MemoryResources.h>fairmq/MemoryResources.h:35GitHub ↗
Inherits from
std::pmr::memory_resource
Inherited by
fair::mq::ChannelResource

All FairMQ related memory resources need to inherit from this interface class for the getMessage() api.

Functions

virtual MessagePtr getMessage(void* p) = 0

return the message containing data associated with the pointer (to start of buffer), e.g. pointer returned by std::vector::data() return nullptr if returning a message does not make sense!