---
title: "init(bytes:length:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothsdpuuid/init(bytes:length:)"
---

# init(bytes:length:)

Creates a new IOBluetoothSDPUUID object with the given bytes of the given length.

## Declaration

```swift
convenience init!(bytes: UnsafeRawPointer!, length: UInt32)
```

## Parameters

- `bytes`: An array of bytes representing the UUID.
- `length`: The length of the array of bytes.

## Return Value

Return Value Returns the new IOBluetoothSDPUUID object or nil on failure.

## Discussion

Discussion If the length is invalid for a UUID, nil is returned.

## See Also

### Initializers

- [init(data:)](iobluetooth/iobluetoothsdpuuid/init(data:).md)
- [init(uuid16:)](iobluetooth/iobluetoothsdpuuid/init(uuid16:)-7j3zk.md)
- [init(uuid32:)](iobluetooth/iobluetoothsdpuuid/init(uuid32:)-7qjwq.md)
