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

# Title Storage 서비스 구성의 할당량 정보 가져오기

> XblTitleStorageGetQuotaAsync를 통해 서비스 구성 및 스토리지 유형에 대한 XBOX Title Storage 할당량과 사용된 바이트를 검색하는 Flat C 코드 샘플입니다.

이 항목에서는 다음 flat C 코드 예제를 사용하여 XBOX Title Storage에서 지정된 서비스 구성 및 스토리지 유형에 대한 할당량 정보를 가져오는 방법을 보여줍니다.

> [!NOTE]
>
> `TrustedPlatform ` 스토리지 유형의 경우 호출하는 플레이어의 XBOX 사용자 ID에 대해 요청이 이루어집니다.

#### Flat C

```cpp theme={null}
auto asyncBlock = std::make_unique<XAsyncBlock>();
asyncBlock->queue = queue;
asyncBlock->context = nullptr;
asyncBlock->callback = [](XAsyncBlock* asyncBlock)
{
    std::unique_ptr<XAsyncBlock> asyncBlockPtr{ asyncBlock };   // Take over ownership of XAsyncBlock*.
    size_t usedBytes;
    size_t quotaBytes;
    HRESULT hr = XblTitleStorageGetQuotaResult(asyncBlock, &usedBytes, &quotaBytes);
};

HRESULT hr = XblTitleStorageGetQuotaAsync(
    xboxLiveContext,
    scid,
    storageType,
    asyncBlock.get()
);

if (SUCCEEDED(hr))
{
    // The call succeeded, so release  std::unique_ptr ownership of XAsyncBlock* because
    // the callback takes over ownership. If the call fails, however, std::unique_ptr keeps
    // ownership and deletes XAsyncBlock*.
    asyncBlock.release();
}
```

## 참고 항목

[XAsyncBlock](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)

[XblTitleStorageGetQuotaAsync](https://docs.xbox.com/ko/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetquotaasync.md)

[XblTitleStorageGetQuotaResult](https://docs.xbox.com/ko/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetquotaresult.md)


## Related topics

- [Title Storage 예제 코드](https://docs.xbox.com/ko/services/xbox-services/storage/title-storage/how-to/live-title-storage-howto-nav.md)
- [XblTitleStorageGetQuotaAsync](https://docs.xbox.com/ko/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetquotaasync.md)
- [방법 안내](https://docs.xbox.com/ko/services/xbox-services/storage/title-storage/how-to/index.md)
- [타이틀 멀티플레이어 서버 할당량 가져오기](https://docs.xbox.com/ko/services/playfab/api-references/rest/multiplayer/multiplayer-server/get-title-multiplayer-servers-quotas.md)
- [타이틀 멀티플레이어 서버 할당량 변경 가져오기](https://docs.xbox.com/ko/services/playfab/api-references/rest/multiplayer/multiplayer-server/get-title-multiplayer-servers-quota-change.md)
