chat_manager::get_memory_callbacks
Retrieves the current memory allocation and freeing callbacks used by the Game Chat 2 library.
Syntax
void get_memory_callbacks(
game_chat_allocate_memory_callback* allocateMemoryCallback,
game_chat_free_memory_callback* freeMemoryCallback
)
Parameters
allocateMemoryCallback _Out_
Type: game_chat_allocate_memory_callback*
A pointer to the memory allocation callback currently used by the Game Chat 2 library.
freeMemoryCallback _Out_
Type: game_chat_free_memory_callback*
A pointer to the memory freeing callback currently used by the Game Chat 2 library.
Return value
Type: void
None.
Remarks
This method retrieves the pointers to the current memory allocation & freeing callbacks that service requests to dynamically allocate and free memory by the Game Chat 2 library. You can call the chat_manager::set_memory_callbacks method to set the memory allocation and freeing callbacks used by the Game Chat 2 library when a memory buffer must be dynamically allocated and freed.
As with the chat_manager::set_memory_callbacks
method, this method does not require the chat_manager::initialize method to have been called first.
Requirements
Header: GameChat2.h
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles