Class

IOBluetoothSDPUUID

An NSData subclass that represents a UUID as defined in the Bluetooth SDP spec.

Declaration

class IOBluetoothSDPUUID : NSData

Overview

The IOBluetoothSDPUUID class can represent a UUID of any valid size (16, 32 or 128 bits). It provides the ability to compare two UUIDs no matter what their size as well as the ability to promote the size of a UUID to a larger one.

Topics

Initializers

init!(uuid16: BluetoothSDPUUID16)

Initializes a new 16-bit IOBluetoothSDPUUID with the given UUID16

init!(uuid32: BluetoothSDPUUID32)

Creates a new 32-bit IOBluetoothSDPUUID with the given UUID32

init!(bytes: UnsafeRawPointer!, length: UInt32)

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

init!(data: Data!)

Creates a new IOBluetoothSDPUUID object from the given NSData.

Instance Methods

func getWithLength(UInt32) -> Self!

Returns an IOBluetoothSDPUUID object matching the target UUID, but with the given number of bytes.

func isEqual(to: IOBluetoothSDPUUID!) -> Bool

Compares the target IOBluetoothSDPUUID object with the given otherUUID object.

Type Methods

class func uuid16(BluetoothSDPUUID16) -> Self!

Creates a new 16-bit IOBluetoothSDPUUID with the given UUID16

class func uuid32(BluetoothSDPUUID32) -> Self!

Creates a new 32-bit IOBluetoothSDPUUID with the given UUID32

Relationships

Inherits From