---
title: getCapacity
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15+]
path: kernel/osdictionary/3180899-getcapacity
---

# getCapacity

Returns count of currently allocated capacity for members in dictionary.

## Declaration

```occ
virtual uint32_t getCapacity(void);
```

```occ
virtual unsigned int getCapacity(void);
```

## Return Value

Return Value Capacity for members in dictionary.

## See Also

### Inspecting a Dictionary

- [ensureCapacity](kernel/osdictionary/3180896-ensurecapacity.md)
- [getCount](kernel/osdictionary/3180900-getcount.md)
