---
title: "AEGetDescDataSize(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1450119-aegetdescdatasize
---

# AEGetDescDataSize(_:)

Gets the size, in bytes, of the data in the specified descriptor.

## Declaration

```swift
func AEGetDescDataSize(_ theAEDesc: UnsafePointer<AEDesc>!) -> Size
```

## Parameters

- `theAEDesc`: A pointer to the descriptor to obtain the data size for. See doc://com.apple.documentation/documentation/coreservices/aedesc.

## Return Value

Return Value Returns the size, in bytes, of the data in the specified descriptor.

## Discussion

Discussion This function works only with value descriptors created by AECreateDesc(_:_:_:_:). You cannot get the data size of an AERecord or AEDescList, for example. Version-Notes Thread safe starting in OS X v10.2.

## See Also

### Operating On Descriptor Data

- [AEGetDescData(_:_:_:)](coreservices/1444427-aegetdescdata.md)
- [AEGetDescDataRange(_:_:_:_:)](coreservices/1446560-aegetdescdatarange.md)
- [AEReplaceDescData(_:_:_:_:)](coreservices/1446695-aereplacedescdata.md)
