BinaryInteger
protocol BinaryInteger : Hashable, Numeric, CustomStringConvertible, Strideable
Extension to Int to make it Sendable and Receivable.
-
This function is required to conform to
Sendable
, and figures out the size of theInteger
used by the iOS device.Declaration
Swift
public func toBluetoothData() -> Data
-
This function is required to conform to
Receivable
, and figures out the size of theInteger
used by the iOS device.Declaration
Swift
public init(bluetoothData: Data)