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

# 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\_\
類型：uint64\_t

與先前透過呼叫 [chat\_manager::add\_remote\_user](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user) 向 Game Chat 2 公告之端點相關聯的識別碼。

*bufferByteCount*   \_In\_\
類型：uint32\_t

資料緩衝區的大小，以位元組為單位。

*buffer*   \_In\_reads\_(bufferByteCount)\
類型：void\*

資料緩衝區。

### 傳回值

類型：void

無。

## 備註

當應用程式的傳輸層接收到源自遠端 Game Chat 2 執行個體的資料時，請呼叫此方法將資料傳遞給本機 Game Chat 2 執行個體。接著 Game Chat 2 會解碼傳入的資料，並將其轉譯至本機使用者的裝置。如需處理資料框架的詳細資訊，請參閱[使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)。

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[game\_chat\_data\_frame](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame)\
[chat\_manager](/zh-TW/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [add_remote_user](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [OnFoundProcess](/zh-TW/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfRunningProcessCallback/methods/ixtfrunningprocesscallback_onfoundprocess.md)
- [PartyLocalChatControl::SetIncomingAudioMuted](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setincomingaudiomuted.md)
- [PartyLocalChatControl::GetIncomingAudioMuted](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getincomingaudiomuted.md)
