Syntax
Parameters
allocateMemoryCallback PFMultiplayerAllocateMemoryCallback
A pointer to the custom allocation callback to use.
freeMemoryCallback PFMultiplayerFreeMemoryCallback
A pointer to the custom freeing callback to use.
Return value
Type: HRESULTS_OK if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PFMultiplayerGetErrorMessage().
Remarks
This method allows the title to install custom memory allocation functions in order to service all requests by the Multiplayer library for new memory buffers instead of using its default allocation functions.The
allocateMemoryCallback and freeMemoryCallback parameters must both be non-null. To use this method, it must be called before any other Multiplayer method. This method cannot be called again for the lifetime of this process.
Requirements
Header: PFMultiplayer.hSee also
PFMultiplayer membersPFMultiplayerAllocateMemoryCallback
PFMultiplayerFreeMemoryCallback
