Skip to main content

XPersistentLocalStorageSpaceInfo

Contains details about the state of Persistent Local Storage (PLS), returned by XPersistentLocalStorageGetSpaceInfo.

Syntax

Members

availableFreeBytes
Type: uint64_t
The amount of available storage space, in bytes. totalFreeBytes
Type: uint64_t
The amount of space left after PLS allocation. You might have to prompt the user to free up space to make these bytes available. For more information, see XPersistentLocalStoragePromptUserForSpaceAsync. usedBytes
Type: uint64_t
The amount of storage space currently in use, in bytes. totalBytes
Type: uint64_t
The total amount of storage space (in bytes) that the user can use.

Remarks

If your title uses Growable Persistent Local Storage, then you can call the XPersistentLocalStorageGetSpaceInfo function to determine how much storage space is available. When the XPersistentLocalStorageGetSpaceInfo function call returns, check the XPersistentLocalStorageSpaceInfo object for the storage details. Storage details include the amount of space in use, how much is available to the title, and whether the user should be prompted to free up space.

Requirements

Header: XPersistentLocalStorage.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XPersistentLocalStorage
XPersistentLocalStorageGetSpaceInfo
XPersistentLocalStoragePromptUserForSpaceAsync.
Last modified on August 20, 2026