---
title: GetTokenSize
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioworkgroup/gettokensize
---

# GetTokenSize

## Declaration

```occ
size_t GetTokenSize();
```

## Return Value

Return Value Workgroup token size

## Discussion

Discussion Get the size of the workgroup token. Join() and Leave() require the caller to pass a token. This token should be allocated by the caller, and freed when no longer needed. Use this method to determine how much memory to allocate for the token.
