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

# XAsyncGetResultSize

> XAsyncGetResultSize

# XAsyncGetResultSize

[XAsyncGetResult](https://docs.xbox.com/ko/reference/system/xasyncprovider/functions/xasyncgetresult.md)에 전달할 버퍼의 필요한 크기를 반환합니다.

## 구문

```cpp theme={null}
HRESULT XAsyncGetResultSize(  
         XAsyncBlock* asyncBlock,  
         size_t* bufferSize  
)  
```

### 매개 변수

*asyncBlock*   \_Inout\_\
형식: [XAsyncBlock\*](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)

비동기 호출에 전달된 [XAsyncBlock](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)에 대한 포인터입니다.

*bufferSize*   \_Out\_\
형식: size\_t\*

결과를 담는 데 필요한 버퍼의 크기(바이트)입니다.

### 반환 값

형식: [HRESULT](https://learn.microsoft.com/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a)

성공하면 `S_OK`를 반환하고, 그렇지 않으면 오류 코드를 반환합니다. 오류 코드 목록은 [오류 코드](https://docs.xbox.com/ko/reference/errorcodes.md)를 참조하세요.

## 설명

비동기 호출이 결과를 반환하는 경우 [XAsyncGetResult](https://docs.xbox.com/ko/reference/system/xasyncprovider/functions/xasyncgetresult.md)를 호출하기 전에 이 함수를 호출하여 결과를 담는 데 필요한 버퍼의 크기를 지정합니다. 결과를 반환하는 각 비동기 호출에는 해당 비동기 호출에서 결과를 반환하기 위해 호출할 수 있는 해당 함수가 있어야 합니다.

결과를 반환하기 위한 해당 함수가 있는 비동기 호출의 예는 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/ko/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 및 [XGameSaveGetRemainingQuotaResult](https://docs.xbox.com/ko/reference/system/xgamesave/functions/xgamesavegetremainingquotaresult.md)를 참조하세요.

## 요구 사항

**헤더:** XAsync.h

**라이브러리:** xgameruntime.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [비동기 프로그래밍 모델](https://docs.xbox.com/ko/build/core-features/common/async/async-programming-model.md)
* [게임 저장 디버깅](https://docs.xbox.com/ko/build/core-features/common/game-save/game-saves-debugging.md)

## 함께 보기

[XAsync 멤버](https://docs.xbox.com/ko/reference/system/xasync/xasync_members.md)\
[XAsyncGetStatus](https://docs.xbox.com/ko/reference/system/xasync/functions/xasyncgetstatus.md)\
[비동기 프로그래밍 모델](https://docs.xbox.com/ko/build/core-features/common/async/async-programming-model.md)


## Related topics

- [게임 저장 디버깅](https://docs.xbox.com/ko/build/core-features/common/game-save/game-saves-debugging.md)
- [비동기 프로그래밍 모델](https://docs.xbox.com/ko/build/core-features/common/async/async-programming-model.md)
- [XAsync (API 콘텐츠)](https://docs.xbox.com/ko/reference/system/xasync/xasync_members.md)
- [XAsyncCancel](https://docs.xbox.com/ko/reference/system/xasync/functions/xasynccancel.md)
- [XAsyncBlock](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)
