---
title: kIOSurfaceAllocSize
framework: IOSurface
role: symbol
role_heading: Global Variable
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.6+, tvOS 11.0+, visionOS 1.0+]
path: iosurface/kiosurfaceallocsize
---

# kIOSurfaceAllocSize

CFNumber of the total allocation size of the buffer including all planes.

## Declaration

```swift
let kIOSurfaceAllocSize: CFString
```

## Discussion

Discussion Defaults to BufferHeight * BytesPerRow if not specified. Must be specified for dimensionless buffers.

## See Also

### Constants

- [kIOSurfaceBytesPerElement](iosurface/kiosurfacebytesperelement.md)
- [kIOSurfaceBytesPerRow](iosurface/kiosurfacebytesperrow.md)
- [kIOSurfaceCacheMode](iosurface/kiosurfacecachemode.md)
- [kIOSurfaceColorSpace](iosurface/kiosurfacecolorspace.md)
- [kIOSurfaceElementHeight](iosurface/kiosurfaceelementheight.md)
- [kIOSurfaceElementWidth](iosurface/kiosurfaceelementwidth.md)
- [kIOSurfaceHeight](iosurface/kiosurfaceheight.md)
- [kIOSurfaceICCProfile](iosurface/kiosurfaceiccprofile.md)
- [kIOSurfaceIsGlobal](iosurface/kiosurfaceisglobal.md)
- [kIOSurfaceName](iosurface/kiosurfacename.md)
- [kIOSurfaceOffset](iosurface/kiosurfaceoffset.md)
- [kIOSurfacePixelFormat](iosurface/kiosurfacepixelformat.md)
- [kIOSurfacePixelSizeCastingAllowed](iosurface/kiosurfacepixelsizecastingallowed.md)
- [kIOSurfacePlaneBase](iosurface/kiosurfaceplanebase.md)
- [kIOSurfacePlaneBitsPerElement](iosurface/kiosurfaceplanebitsperelement.md)
