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

# PFLeaderboardsGetLeaderboardAroundEntityGetResultSize

> 获取存储 GetLeaderboardAroundEntity 调用结果所需的大小（以字节为单位）。

获取存储 GetLeaderboardAroundEntity 调用结果所需的大小（以字节为单位）。

## 语法

```cpp theme={null}
HRESULT PFLeaderboardsGetLeaderboardAroundEntityGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 参数

**`async`**   XAsyncBlock\*<br />*Inout*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t\*<br />*output*

结果所需的缓冲区大小（以字节为单位）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用不成功，结果将为 E\_PF\_LEADERBOARD\_NOT\_FOUND、E\_PF\_NO\_LEADERBOARD\_FOR\_STATISTIC、E\_PF\_SPECIFIED\_VERSION\_LEADERBOARD\_NOT\_FOUND、E\_PF\_STATISTIC\_NOT\_FOUND 或任何全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“Handling PlayFab Errors”。

## 要求

**头文件：** PFLeaderboards.h

## 另请参阅

[PFLeaderboards 成员](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)


## Related topics

- [PFLeaderboardsGetLeaderboardAroundEntityAsync](/zh-CN/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentityasync.md)
- [服务 C API 概览 - PFLeaderboards.h](/zh-CN/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetLeaderboardAroundEntityGetResult](/zh-CN/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresult.md)
- [PFLeaderboardsGetLeaderboardAroundEntityRequest](/zh-CN/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsgetleaderboardaroundentityrequest.md)
- [PFLeaderboardsGetLeaderboardForEntitiesGetResultSize](/zh-CN/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresultsize.md)
