DataPadding
public struct DataPadding : Sendable
Helper object that can create empty data to be used as padding in packet construction.
-
Create empty data.
Declaration
Swift
public init(_ amount: Int)
Parameters
amount
number of bytes.
-
This function is required to conform to the
Sendable
protocol, which allows Bluejay to serializeDataPadding
when performing write-related operations.Declaration
Swift
public func toBluetoothData() -> Data