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

# PFFriendsServerGetFriendsListGetResultSize

> 获取存储 ServerGetFriendsList 调用结果所需的字节大小。

获取存储 ServerGetFriendsList 调用结果所需的字节大小。

## 语法

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

### 参数

**`async`**   XAsyncBlock\*\
*Inout*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t\*\
*output*

结果所需的缓冲区大小（字节）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是 E\_PF\_ACCOUNT\_NOT\_FOUND、E\_PF\_EXPIRED\_XBOX\_LIVE\_TOKEN、E\_PF\_FACEBOOK\_API\_ERROR、E\_PF\_INVALID\_SIGNATURE、E\_PF\_INVALID\_SIGNATURE\_TIME、E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN、E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED、E\_PF\_XBOX\_INACCESSIBLE、E\_PF\_XBOX\_SERVICE\_TOO\_MANY\_REQUESTS、E\_PF\_XBOX\_XASS\_EXCHANGE\_FAILURE 或任何全局 PlayFab 服务错误。有关错误处理的详细信息，请参阅文档页面“Handling PlayFab Errors”。

## 要求

**头文件：** PFFriends.h

## 另请参阅

[PFFriends 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/pffriends_members.md)


## Related topics

- [PFFriendsServerGetFriendsListAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistasync.md)
- [Services C API overview - PFFriends.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsServerGetFriendsListGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md)
- [PFFriendsClientGetFriendsListGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult.md)
