BinaryInteger
protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude
Extension to Int to make it Sendable and Receivable.
-
This function is required to conform to
Sendable, and figures out the size of theIntegerused by the iOS device.Declaration
Swift
public func toBluetoothData() -> Data -
This function is required to conform to
Receivable, and figures out the size of theIntegerused by the iOS device.Declaration
Swift
public convenience init(bluetoothData: Data)
View on GitHub
BinaryInteger Extension Reference