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

# PFEntityGetEntityTokenResultSize

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

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

## 语法

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

### 参数

**`async`**   XAsyncBlock\*<br />*输入/输出*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t\*<br />*输出*

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

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFEntity.h

## 另请参阅

[PFEntity 成员](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Services C API overview - PFEntity.h](/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [实体句柄](/zh-CN/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResult](/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresult.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
