hmbdc
simplify-high-performance-messaging-programming
Public Member Functions | List of all members
hmbdc::tips::DefaultAttachmentAllocator Struct Reference

when Domain (it's pumps) receives a hasMemoryAttachment, there is a need to allocate desired memory to hold the attachment bytes and release it after consumed. This is the policy type dictating how that is done by default - using malloc/free More...

#include <Domain.hpp>

Public Member Functions

void * operator() (uint16_t typeTag, app::hasMemoryAttachment *att)
 fill in hasMemoryAttachment so it holds the desired memory and the incoming attachment can be holden More...
 

Detailed Description

when Domain (it's pumps) receives a hasMemoryAttachment, there is a need to allocate desired memory to hold the attachment bytes and release it after consumed. This is the policy type dictating how that is done by default - using malloc/free

Member Function Documentation

◆ operator()()

void* hmbdc::tips::DefaultAttachmentAllocator::operator() ( uint16_t  typeTag,
app::hasMemoryAttachment att 
)
inline

fill in hasMemoryAttachment so it holds the desired memory and the incoming attachment can be holden

Parameters
typeTagthe hasMemoryAttachment message type tag
attthe hasMemoryAttachment struct to be filled in
Returns
the allocated memory

The documentation for this struct was generated from the following file: