PFMultiplayerFreeMemoryCallback

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

Syntax

typedef
void (*PFMultiplayerFreeMemoryCallback)(  
    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 PlayFab Multiplayer 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 PFMultiplayerSetMemoryCallbacks() method.

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

Requirements

Header: PFMultiplayer.h

See also

PFMultiplayer members
PFMultiplayerAllocateMemoryCallback
PFMultiplayerSetMemoryCallbacks