ByteSwap
A Bluetooth value that is stored in the CPU native endianess format.
protocol ByteSwap
Browse conforming typesA Bluetooth value that is stored in the CPU native endianess format.
protocol ByteSwap
import Bluetooth
Pure Swift Bluetooth Definitions.
var byteSwapped: Self { get }
A representation of this integer with the byte order swapped.
init(bigEndian value: Self)
Creates an instance from its big-endian representation, changing the byte order if necessary.
init(littleEndian value: Self)
Creates an instance from its little-endian representation, changing the byte order if necessary.
var bigEndian: Self { get }
The big-endian representation of this value.
var littleEndian: Self { get }
The little-endian representation of this value.