ByteValue
Stores a primitive value.
protocol ByteValue : Equatable
Browse conforming typesUseful for Swift wrappers for primitive byte types.
Stores a primitive value.
protocol ByteValue : Equatable
Useful for Swift wrappers for primitive byte types.
import Bluetooth
Pure Swift Bluetooth Definitions.
protocol Equatable
A type that can be compared for value equality.
associatedtype ByteValue
init(bytes: ByteValue)
Initializes with the primitive the primitive byte type.
static var bitWidth: Int { get }
The number of bits used for the underlying binary representation of values of this type.
var bytes: ByteValue { get }
Returns the the primitive byte type.
static var length: Int { get }
Size of value in bytes.
static func == (lhs: Self, rhs: Self) -> Bool
func withUnsafeBytes<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R
protocol DataConvertible
Can be converted into data.
var dataLength: Int { get }
func append<Data>(to data: inout Data) where Data : DataContainer
Append data representation into buffer.
protocol ByteSwap
A Bluetooth value that is stored in the CPU native endianess format.
protocol CustomStringConvertible
A type with a customized textual representation.
var description: String { get }
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
static func < (lhs: Self, rhs: Self) -> Bool
static func > (lhs: Self, rhs: Self) -> Bool