---
title: getSize()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothsdpdataelement/getsize()
---

# getSize()

Returns the size in bytes of the target data element.

## Declaration

```swift
func getSize() -> UInt32
```

## Return Value

Return Value Returns the size in bytes of the target data element.

## Discussion

Discussion The size is valid whether the data element has a fixed or variable size descriptor.
