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

# IGameInputRawDeviceReport::GetRawDataSize

> IGameInputRawDeviceReport::GetRawDataSize

# IGameInputRawDeviceReport::GetRawDataSize

傳回原始報告緩衝區的大小 (以位元組為單位)。

## 語法

```cpp theme={null}
size_t GetRawDataSize();
```

### 參數

此方法沒有參數。

### 傳回值

類型：size\_t

針對遊戲輸入通訊協定 (GIP) 裝置，傳回原始資料緩衝區的大小 (以位元組為單位)。此函式未針對其他裝置實作，並會傳回 0。

## 備註

`IGameInputRawDeviceReport::GetRawDataSize` 方法會傳回原始報告緩衝區的大小 (以位元組為單位)。

如需 GameInput API 的中階和進階使用案例，請參閱[進階 GameInput 主題](/zh-TW/build/core-features/common/input/advanced/input-advanced-topics)。

## 需求

[GameInput 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)\
[IGameInputRawDeviceReport](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | 重新推出。 |
| **v1** | 隨 IGameInputRawDeviceReport 介面一併移除。 |
| **v0** | 推出。 |


## Related topics

- [IGameInputRawDeviceReport](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputRawDeviceReport::SetRawData](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_setrawdata.md)
- [IGameInputRawDeviceReport::GetRawData](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getrawdata.md)
- [IGameInputRawDeviceReport::GetReportInfo](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getreportinfo.md)
- [IGameInputRawDeviceReport::GetDevice](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getdevice.md)
