SFloat
IEEE-11073 16-bit SFLOAT
@frozen struct SFloat
IEEE-11073 16-bit SFLOAT
@frozen struct SFloat
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.
@frozen struct UInt48
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.
protocol BitwiseCopyable
protocol ByteSwap
A Bluetooth value that is stored in the CPU native endianess format.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init()
Creates a value initialized to zero.
init(_ value: Float)
init(_ float: Float16)
init(bitPattern: UInt16)
Creates a new value with the given bit pattern.
init(from decoder: any Decoder) throws
var bitPattern: UInt16 { get }
The bit pattern of the value’s encoding.
var byteSwapped: SFloat { get }
A representation of this float with the byte order swapped.
var description: String { get }
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.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.