IntdashPacketHelper

public class IntdashPacketHelper

IntdashData をSDK内部で使用するバイナリ表現に変換するためのヘルパークラス。

  • IntdashData をSDK内内部で使用するバイナリ表現にシリアライズします。

    Declaration

    Swift

    public static func generatePackets(units: [IntdashData]) throws -> Data

    Parameters

    units

    IntdashData の配列

    Return Value

    バイナリデータ

  • SDK内部で使用されているバイナリ表現を IntdashData にパースします。

    Declaration

    Swift

    public static func parsePackets(data: Data) throws -> [IntdashData]

    Parameters

    data

    バイナリデータ

    Return Value

    IntdashData の配列