---
title: getCapacity
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osarray/getcapacity
---

# getCapacity

Returns count of currently allocated capacity for members in array.

## Declaration

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

## Return Value

Return Value Capacity for members in array.

## See Also

### Inspecting an Array

- [getCount](driverkit/osarray/getcount.md)
- [ensureCapacity](driverkit/osarray/ensurecapacity.md)
- [OSArrayGetCount](driverkit/osarraygetcount.md)
