Edit

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

void PFMULTIPLAYER_API PFMultiplayerFreeMemoryCallback(  
    void* pointer,  
    PFMultiplayerMemoryType memoryTypeId  
);  

Parameters

pointer   void*
Post_invalid

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

memoryTypeId   PFMultiplayerMemoryType

An opaque identifier representing the PlayFab Multiplayer library internal category of memory being freed. Generally, you can ignore this value, but you can use it to help diagnose and debug Multiplayer memory allocations.

Return value

Type: void

The callback doesn't 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