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

# XAsyncGetResultSize

> XAsyncGetResultSize

# XAsyncGetResultSize

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

## 구문

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

### 매개 변수

*asyncBlock*   \_Inout\_\
형식: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

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

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

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

### 반환 값

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

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

## 설명

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

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

## 요구 사항

**헤더:** XAsync.h

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

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

## 개념 설명서

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

## 함께 보기

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


## Related topics

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