Syntax
Parameters
allocateMemoryCallback PartyAllocateMemoryCallback
A pointer to the custom allocation callback to use.
freeMemoryCallback PartyFreeMemoryCallback
A pointer to the custom freeing callback to use.
Return value
PartyErrorc_partyErrorSuccess if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via GetErrorMessage().
Remarks
This method allows the title to install custom memory allocation functions in order to service all requests by the Party 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 Party method except for PartyManager::GetMemoryCallbacks(). This method cannot be called again for the lifetime of this process.
Requirements
Header: Party.hSee also
PartyManagerPartyAllocateMemoryCallback
PartyFreeMemoryCallback
PartyManager::GetMemoryCallbacks
