Required Instance Methodpureswift.bluetooth 7.2.0Bluetooth
subdata(in:)
Return a new copy of the data in a specified range.
func subdata(in range: Range<Index>) -> Self
Parameters
- range
The range to copy.
Return a new copy of the data in a specified range.
func subdata(in range: Range<Index>) -> Self
The range to copy.
import Bluetooth
Pure Swift Bluetooth Definitions.
protocol DataContainer : Hashable, RandomAccessCollection, Sendable where Self.Element == UInt8, Self.Index == Int
Data container type.
@frozen struct Range<Bound> where Bound : Comparable
A half-open interval from a lower bound up to, but not including, an upper bound.
associatedtype Index
init()
init<C>(_ collection: C) where C : Collection, C.Element == UInt8
subscript(index: Int) -> UInt8 { get }
static func += <C>(lhs: inout Self, rhs: C) where C : Collection, C.Element == UInt8
static func += (lhs: inout Self, rhs: UInt8)
mutating func append(_ newElement: UInt8)
mutating func append(_ pointer: UnsafePointer<UInt8>, count: Int)
mutating func append<C>(contentsOf bytes: C) where C : Collection, C.Element == UInt8
mutating func reserveCapacity(_ capacity: Int)