UInt48
UInt48.swift:10@frozen struct UInt48
@frozen struct UInt48
import Bluetooth
Pure Swift Bluetooth Definitions.
@frozen struct UInt24
A 24 bit number stored according to host endianness.
@frozen struct UInt40
A 40 bit number stored according to host endianness.
typealias UInt128 = Swift.UInt128
@frozen struct UInt256
A 256 bit number stored according to host endianness.
@frozen struct UInt512
A 512 bit number stored according to host endianness.
@frozen struct SFloat
IEEE-11073 16-bit SFLOAT
protocol BitwiseCopyable
protocol ByteSwap
A Bluetooth value that is stored in the CPU native endianess format.
protocol ByteValue : Equatable
Stores a primitive value.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol DataConvertible
Can be converted into data.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(_ value: UInt64)
Initialize from a unsigned 64-bit integer.
init(bytes: ByteValue = (0, 0, 0, 0, 0, 0))
init?<Data>(data: Data) where Data : DataContainer
init(integerLiteral value: UInt64)
static var bitWidth: Int { get }
static var max: UInt48 { get }
The maximum representable value in this type.
static var min: UInt48 { get }
The minimum representable value in this type.
static var zero: UInt48 { get }
The value with all bits set to zero.
var byteSwapped: UInt48 { get }
var bytes: ByteValue
var description: String { get }
func hash(into hasher: inout Hasher)
typealias ByteValue = (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)
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.
static var length: Int { get }
Size of value in bytes.
var bigEndian: Self { get }
The big-endian representation of this value.
var dataLength: Int { get }
var littleEndian: Self { get }
The little-endian representation of this value.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func += <Data>(data: inout Data, value: Self) where Data : DataContainer
Append data representation into buffer.
static func ... (minimum: Self) -> PartialRangeFrom<Self>
Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self) -> PartialRangeThrough<Self>
Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>
Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self) -> PartialRangeUpTo<Self>
Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self) -> Range<Self>
Returns a half-open range that contains its lower bound but not its upper bound.
static func < (lhs: Self, rhs: Self) -> Bool
static func <= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func == (lhs: Self, rhs: Self) -> Bool
static func > (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func > (lhs: Self, rhs: Self) -> Bool
static func >= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
func append<Data>(to data: inout Data) where Data : DataContainer
Append data representation into buffer.
func withUnsafeBytes<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R