Services C API overview - PFPlatform.h

Functions

Function Description
PFMemGetFunctions Gets the memory hook functions to allow callers to control route memory allocations to their own memory manager. This method allows the application get the default memory allocation routines. This can be used along with PFMemSetFunctions() to monitor all memory allocations.
PFMemSetFunctions Optionally sets the memory hook functions to allow callers to control route memory allocations to their own memory manager. This must be called before PFInitialize() and can not be called again once memory hooks have been set. This method allows the application to install custom memory allocation routines in order to service all requests for new memory buffers instead of using default allocation routines.
PFPlatformLocalStorageSetHandlers Sets the storage event handlers. If custom storage handlers are not set, a default implementation based on cstdio and std::fstream objects will be used.

Structures

Structure Description
PFLocalStorageHooks Struct encapsulating the storage hooks.
PFMemoryHooks Struct encapsulating memory hooks.