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

> Get the size in bytes needed to store the result of a PFEntityGetEntityTokenAsync call.

Get the size in bytes needed to store the result of a PFEntityGetEntityTokenAsync call.

## Syntax

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

### Parameters

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

XAsyncBlock for the async operation.

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

The buffer size in bytes required for the result.

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFEntity.h

## See also

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


## Related topics

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