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

# XPackageWriteStats

> XPackageWriteStats

Contains the output write statistics (writeStats).

## Syntax

```cpp theme={null}
typedef struct XPackageWriteStats {  
    uint64_t interval;  
    uint64_t budget;  
    uint64_t elapsed;  
    uint64_t bytesWritten;  
} XPackageWriteStats  
```

### Members

*interval*\
Type: uint64\_t

Read/Write: The total amount of time, in milliseconds, of the current interval.

*budget*\
Type: uint64\_t

Read: The amount of data the system will permit the title to write in the current interval without causing an exceeded event to be logged.

*elapsed*\
Type: uint64\_t

Read/Write: The amount of time, in milliseconds, elapsed in the current interval.

*bytesWritten*\
Type: uint64\_t

Read/Write: The number of bytes written by the title in the current interval.

## Remarks

The `XpackageWriteStats` structure is used by the [XPackageGetWriteStats](https://docs.xbox.com/reference/system/xpackage/functions/xpackagegetwritestats.md) function to both specify and receive write statistics (writeStats) for the current interval.

> [!NOTE]
>
> The first interval tracked by the title does not update *elapsed* and will not cause an exceeded event to be logged when surpassing the *budget*. Once the total *budget* of data has been written once, the interval will reset and the *elapsed* value will now start updating. Future intervals in the title will then reset based on interval times and trigger the exceeded event if the *budget* is surpassed.

For information about the packaging technology used with XBOX One titles, see [Overview of Packaging](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md). For information about the steps to create an XVC package, see [Getting started packaging titles for XBOX consoles](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging-getting-started-for-console.md).

## Requirements

**Header:** XPackage.h

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

## See also

[Overview of downloadable content (DLC) packages](https://docs.xbox.com/build/core-features/common/packaging/packaging-downloadable-content-dlc.md)\
[XPackage](https://docs.xbox.com/reference/system/xpackage/xpackage_members.md)


## Related topics

- [XPackageGetWriteStats](https://docs.xbox.com/reference/system/xpackage/functions/xpackagegetwritestats.md)
- [XPackage (API contents)](https://docs.xbox.com/reference/system/xpackage/xpackage_members.md)
- [Packages](https://docs.xbox.com/publishing/game-publishing/concepts/game-package-management.md)
- [Transaction writes](https://docs.xbox.com/services/playfab/player-progression/statistics/transactional-writes.md)
- [Local storage on Xbox console](https://docs.xbox.com/build/console-features/storage/local-storage.md)
