> ## 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

Game Chat 2 ライブラリで使用されている現在のメモリ割り当てと解放のコールバックを取得します。

<a id="syntaxSection" />

## 構文

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

<a id="parametersSection" />

### パラメーター

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

Game Chat 2 ライブラリで現在使用されているメモリ割り当てコールバックへのポインター。

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

Game Chat 2 ライブラリで現在使用されているメモリ解放コールバックへのポインター。

<a id="retvalSection" />

### 戻り値

型: void

なし。

<a id="remarksSection" />

## 解説

このメソッドは、Game Chat 2 ライブラリでメモリを動的に割り当てて解放する要求を処理する、現在のメモリ割り当てと解放のコールバックへのポインターを取得します。メモリ バッファーを動的に割り当てて解放する必要があるときに Game Chat 2 ライブラリが使用するメモリ割り当てと解放のコールバックを設定するには、[chat\_manager::set\_memory\_callbacks](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_memory_callbacks) メソッドを呼び出すことができます。

`chat_manager::set_memory_callbacks` メソッドと同様に、このメソッドを呼び出すために [chat\_manager::initialize](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) メソッドが最初に呼び出されている必要はありません。

<a id="requirementsSection" />

## 要件

**ヘッダー:** GameChat2.h

**サポートされるプラットフォーム:** Windows、XBOX One ファミリ本体および XBOX Series 本体

<a id="seealsoSection" />

## 関連項目

[Game Chat 2 の概要](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

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