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

# XNetworkingStatisticsBuffer

> XNetworkingStatisticsBuffer

A union declaring buffer space for holding all possible output structure types returned when querying networking statistics with [XNetworkingQueryStatistics](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md).

## Syntax

```cpp theme={null}
union XNetworkingStatisticsBuffer {  
    XNetworkingTcpQueuedReceivedBufferUsageStatistics tcpQueuedReceiveBufferUsage;  
}
```

### Members

*tcpQueuedReceiveBufferUsage*\
Type: [XNetworkingTcpQueuedReceivedBufferUsageStatistics](https://docs.xbox.com/reference/networking/xnetworking/structs/xnetworkingtcpqueuedreceivedbufferusagestatistics.md)

The structure populated when querying the TitleTcpQueuedReceivedBufferUsage, SystemTcpQueuedReceivedBufferUsage, or ToolsTcpQueuedReceivedBufferUsage [XNetworkingStatisticsType](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md).

## Remarks

Only one substructure field within the union will be written by the [XNetworkingQueryStatistics](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md) function. That field is determined by the [XNetworkingStatisticsType](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md) passed to that function. Any additional memory defined by the union as a whole but that lies beyond the end of the reported substructure is not modified by the call to [XNetworkingQueryStatistics](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md).

## Requirements

**Header:** XNetworking.h

**Supported Platforms**: Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XNetworking](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)\
[XNetworkingQueryStatistics](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md)


## Related topics

- [XNetworkingStatisticsType](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md)
- [XNetworkingTcpQueuedReceivedBufferUsageStatistics](https://docs.xbox.com/reference/networking/xnetworking/structs/xnetworkingtcpqueuedreceivedbufferusagestatistics.md)
- [XNetworkingQueryStatistics](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md)
- [XNetworking (API contents)](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingConfigurationSetting](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
