> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPersistentLocalStorageSpaceInfo

> XPersistentLocalStorageSpaceInfo

# XPersistentLocalStorageSpaceInfo

[XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo) によって返される、永続ローカル ストレージ (PLS) の状態に関する詳細が含まれます。

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
typedef struct XPersistentLocalStorageSpaceInfo {
    uint64_t availableFreeBytes;
    uint64_t totalFreeBytes;
    uint64_t usedBytes;
    uint64_t totalBytes;
} XPersistentLocalStorageSpaceInfo
```

<a id="membersSection" />

### Members

*availableFreeBytes*\
型: uint64\_t

利用可能なストレージ領域の量 (バイト単位)。

*totalFreeBytes*\
型: uint64\_t

PLS の割り当て後に残っている領域の量。これらのバイトを利用可能にするために、ユーザーに空き領域を確保するように促す必要がある場合があります。詳細については、[XPersistentLocalStoragePromptUserForSpaceAsync](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync) を参照してください。

*usedBytes*\
型: uint64\_t

現在使用中のストレージ領域の量 (バイト単位)。

*totalBytes*\
型: uint64\_t

ユーザーが使用できるストレージ領域の合計量 (バイト単位)。

<a id="remarksSection" />

## Remarks

タイトルが拡張可能な永続ローカル ストレージを使用している場合、[XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo) 関数を呼び出して、利用可能なストレージ領域を判定できます。

`XPersistentLocalStorageGetSpaceInfo` 関数の呼び出しが返ったら、ストレージの詳細について [XPersistentLocalStorageSpaceInfo](/reference/system/xpersistentlocalstorage/structs/xpersistentlocalstoragespaceinfo) オブジェクトを確認します。

ストレージの詳細には、使用中の領域の量、タイトルで利用可能な量、およびユーザーに空き容量を確保するように促す必要があるかどうかが含まれます。

<a id="requirementsSection" />

## Requirements

**ヘッダー:** XPersistentLocalStorage.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

<a id="seealsoSection" />

## See also

[XPersistentLocalStorage](/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members)\
[XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo)\
[XPersistentLocalStoragePromptUserForSpaceAsync](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync).


## Related topics

- [XPersistentLocalStorageGetSpaceInfo](/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo.md)
- [XPersistentLocalStorage](/ja-jp/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members.md)
- [XPersistentLocalStoragePromptUserForSpaceResult](/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceresult.md)
- [XPersistentLocalStoragePromptUserForSpaceAsync](/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync.md)
- [XPersistentLocalStorageGetPath](/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetpath.md)
