openDAQ
Open data acquisition platform
DeleterPtr Class Reference

Callback which is called when external memory is no longer needed and can be freed. More...

Inherits ObjectPtr< IDeleter >.

Detailed Description

Callback which is called when external memory is no longer needed and can be freed.

This interface is used with blueberry packets that are created with external memory. Provider of external memory is responsible to provide a custom deleter, which is called when the packet is destroyed.

Public Member Functions

void deleteMemory (void *address) const
 Deletes or frees the memory associated with address parameter. More...
 

Member Function Documentation

◆ deleteMemory()

void deleteMemory ( void *  address) const
inline

Deletes or frees the memory associated with address parameter.

Parameters
[out]addressThe address of the external memory.