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

Returns the size of the raw report buffer in bytes.

## Syntax

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

### Parameters

This method has no parameters.

### Return value

Type: size\_t

Returns the size of the raw data buffer in bytes for Game Input Protocol (GIP) devices. This function is unimplemented for other devices and returns 0.

## Remarks

The `IGameInputRawDeviceReport::GetRawDataSize` method returns the size of the raw report buffer in bytes.

For intermediate and advanced use-cases of the GameInput API, see [Advanced GameInput topics](https://docs.xbox.com/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requirements

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

## Version History

| Version | Changes |
| - | - |
| **v3** | Re-introduced. |
| **v1** | Removed along with the IGameInputRawDeviceReport interface. |
| **v0** | Introduced. |


## Related topics

- [GetRawData](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getrawdata.md)
- [SetRawData](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_setrawdata.md)
- [IGameInputRawDeviceReport (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [PFDataGetObjectsGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresultsize.md)
- [PFDataGetFilesGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesgetresultsize.md)
