> ## 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 的中级和高级用法，请参见 [Advanced GameInput topics](/build/core-features/common/input/advanced/input-advanced-topics)。

## 要求

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

## 版本历史

| 版本     | 变更                                  |
| ------ | ----------------------------------- |
| **v3** | 重新引入。                               |
| **v1** | 与 IGameInputRawDeviceReport 接口一同移除。 |
| **v0** | 引入。                                 |


## Related topics

- [IGameInputRawDeviceReport](/zh-CN/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputDevice::GetRawDeviceFeature](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
- [GameInputRawDeviceReportKind](/zh-CN/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)
- [GameInputRawDeviceReportItemInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputrawdevicereportiteminfo.md)
- [GameInputRawDeviceReportItemFlags](/zh-CN/reference/input/gameinput/deprecated/enums/gameinputrawdevicereportitemflags.md)
