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
amountnumber of bytes.
-
This function is required to conform to the
Sendableprotocol, which allows Bluejay to serializeDataPaddingwhen performing write-related operations.Declaration
Swift
public func toBluetoothData() -> Data
View on GitHub
DataPadding Structure Reference