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

# process_incoming_data

> chat_manager::process_incoming_data

# chat\_manager::process\_incoming\_data

リモートの Game Chat 2 インスタンスから受信したデータを Game Chat 2 に配信します。

## 構文

```cpp theme={null}
void process_incoming_data(  
    uint64_t sourceEndpointIdentifier,  
    uint32_t bufferByteCount,  
    const void* buffer  
)  
```

### パラメーター

*sourceEndpointIdentifier*   \_In\_\
Type: uint64\_t

以前の [chat\_manager::add\_remote\_user](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md) の呼び出しで Game Chat 2 に通知されたエンドポイントに関連付けられている識別子。

*bufferByteCount*   \_In\_\
Type: uint32\_t

データ バッファーのサイズ (バイト単位)。

*buffer*   \_In\_reads\_(bufferByteCount)\
Type: void\*

データ バッファー。

### 戻り値

Type: void

なし。

## 解説

アプリのトランスポート層がリモートの Game Chat 2 インスタンスから発信されたデータを受信した場合、このメソッドを呼び出して、ローカルの Game Chat 2 インスタンスにデータを配信します。その後、Game Chat 2 は受信データをデコードし、ローカル ユーザーのデバイスにレンダリングします。データ フレームの処理の詳細については、「[Game Chat 2 C++ API の使用](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)」を参照してください。

## 要件

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

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

## 関連項目

[Game Chat 2 の概要](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[game\_chat\_data\_frame](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/structs/game_chat_data_frame.md)\
[chat\_manager](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/chat_manager.md)


## Related topics

- [add_remote_user](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [Game Chat 2 の概要](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [OnFoundProcess](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfRunningProcessCallback/methods/ixtfrunningprocesscallback_onfoundprocess.md)
- [start_processing_data_frames](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_data_frames.md)
- [finish_processing_data_frames](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_finish_processing_data_frames.md)
