---
title: allocatedSize()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtl4commandallocator/allocatedsize()
---

# allocatedSize()

Queries the size of the internal memory heaps of this command allocator that support encoding commands into command buffers.

## Declaration

```swift
func allocatedSize() -> UInt64
```

## Return Value

Return Value A size in bytes.
