Static Propertypureswift.bluetooth 7.2.0Bluetooth
max
The maximum representable value in this type.
static var max: BluetoothAddress { get }
The maximum representable value in this type.
static var max: BluetoothAddress { get }
import Bluetooth
Pure Swift Bluetooth Definitions.
@frozen struct BluetoothAddress
Bluetooth address.
init?(_ string: String)
init(bytes: ByteValue = (0, 0, 0, 0, 0, 0))
Initialize with the specifed bytes (in host endianess).
init?<Data>(data: Data) where Data : DataContainer
init?(rawValue: String)
Initialize a Bluetooth Address from its big endian string representation (e.g. 00:1A:7D:DA:71:13
).
static var bitWidth: Int { get }
static var min: BluetoothAddress { get }
The minimum representable value in this type.
static var zero: BluetoothAddress { get }
A zero address.
var byteSwapped: BluetoothAddress { get }
A representation of this address with the byte order swapped.
var bytes: ByteValue
Underlying address bytes (host endianess).
var description: String { get }
var rawValue: String { get }
Convert a Bluetooth Address to its big endian string representation (e.g. 00:1A:7D:DA:71:13
).
static func == (lhs: BluetoothAddress, rhs: BluetoothAddress) -> Bool
func hash(into hasher: inout Hasher)
typealias ByteValue = (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)
Raw Bluetooth Address 6 byte (48 bit) value.