PartyFreeMemoryCallback

A callback invoked every time a previously allocated memory buffer is no longer needed by the Party library and can be freed.

Syntax

typedef
void (*PartyFreeMemoryCallback)(  
    void* pointer,  
    uint32_t memoryTypeId  
)  

Parameters

pointer   void*
Post_invalid

A pointer to a memory buffer previously allocated. This value will never be nullptr.

memoryTypeId   uint32_t

An opaque identifier representing the Party library internal category of memory being freed. This value should be ignored.

Return value

Type: void

The callback does not return a value.

Remarks

This callback is optionally installed using the PartyManager::SetMemoryCallbacks() method.

The callback is invoked whenever the Party library has finished using a memory buffer previously returned by the title's corresponding PartyAllocateMemoryCallback, so that the title can free the memory buffer.

Requirements

Header: Party.h

See also

Party members
PartyAllocateMemoryCallback
PartyManager::SetMemoryCallbacks
PartyManager::GetMemoryCallbacks