> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# chat_manager::get_memory_callbacks

> chat_manager::get_memory_callbacks

# chat\_manager::get\_memory\_callbacks

Recupera os retornos de chamada atuais de alocação e liberação de memória usados pela biblioteca do Game Chat 2.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
void get_memory_callbacks(  
    game_chat_allocate_memory_callback* allocateMemoryCallback,  
    game_chat_free_memory_callback* freeMemoryCallback  
)  
```

<a id="parametersSection" />

### Parâmetros

*allocateMemoryCallback*   \_Out\_\
Tipo: [game\_chat\_allocate\_memory\_callback](/pt-BR/reference/chat/gamechat2/functions/game_chat_allocate_memory_callback)\*

Um ponteiro para o retorno de chamada de alocação de memória usado atualmente pela biblioteca do Game Chat 2.

*freeMemoryCallback*   \_Out\_\
Tipo: [game\_chat\_free\_memory\_callback](/pt-BR/reference/chat/gamechat2/functions/game_chat_free_memory_callback)\*

Um ponteiro para o retorno de chamada de liberação de memória usado atualmente pela biblioteca do Game Chat 2.

<a id="retvalSection" />

### Valor retornado

Tipo: void

Nenhum.

<a id="remarksSection" />

## Comentários

Este método recupera os ponteiros para os retornos de chamada atuais de alocação e liberação de memória que atendem às solicitações de alocação e liberação dinâmica de memória feitas pela biblioteca do Game Chat 2.  Você pode chamar o método [chat\_manager::set\_memory\_callbacks](/pt-BR/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_memory_callbacks) para definir os retornos de chamada de alocação e liberação de memória usados pela biblioteca do Game Chat 2 quando um buffer de memória precisa ser alocado e liberado dinamicamente.

Assim como o método `chat_manager::set_memory_callbacks`, este método não exige que o método [chat\_manager::initialize](/pt-BR/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) tenha sido chamado primeiro.

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** GameChat2.h

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

<a id="seealsoSection" />

## Confira também

[Introdução ao Game Chat 2](/pt-BR/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_manager](/pt-BR/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [chat_manager::set_memory_callbacks](/pt-BR/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_memory_callbacks.md)
- [game_chat_allocate_memory_callback](/pt-BR/reference/chat/gamechat2/functions/game_chat_allocate_memory_callback.md)
- [chat_manager::initialize](/pt-BR/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [game_chat_free_memory_callback](/pt-BR/reference/chat/gamechat2/functions/game_chat_free_memory_callback.md)
- [PartyManager::GetMemoryCallbacks](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getmemorycallbacks.md)
