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

# GetRawDataSize

> IGameInputRawDeviceReport::GetRawDataSize

# IGameInputRawDeviceReport::GetRawDataSize

返回原始报告缓冲区的大小（以字节为单位）。

## 语法

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

### 参数

此方法没有参数。

### 返回值

类型:size\_t

对于游戏输入协议（GIP）设备，返回原始数据缓冲区的大小（以字节为单位）。对于其他设备，此函数未实现并返回 0。

## 注解

`IGameInputRawDeviceReport::GetRawDataSize` 方法返回原始报告缓冲区的大小（以字节为单位）。

有关 GameInput API 的中级和高级用法，请参见 [Advanced GameInput topics](https://docs.xbox.com/zh-CN/build/core-features/common/input/advanced/input-advanced-topics.md)。

## 要求

[GameInput 概述](https://docs.xbox.com/zh-CN/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputRawDeviceReport](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)

## 版本历史

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


## Related topics

- [IGameInputRawDeviceReport（接口内容）](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [PFDataGetFilesGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesgetresultsize.md)
- [PFDataGetObjectsGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresultsize.md)
- [XSpeechSynthesizerGetStreamDataSize](https://docs.xbox.com/zh-CN/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdatasize.md)
- [PFPlayerDataManagementServerGetUserDataGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementservergetuserdatagetresultsize.md)
