SerializableMessage

public protocol SerializableMessage : DeserializableMessage

A Message that is serializable. In other words: that can be transformed into a binary format, ready to be sent to another device. Serializable messages use the Message.title and Serializable.dataBytes properties to compute the serialized message.

  • The part of the serialized message starting after the 4 Message.title bytes. This property is used by the Serializable.serialize() method

    Declaration

    Swift

    var dataBytes: [UInt8] { get }
  • serialize() Extension method

    Undocumented

    Declaration

    Swift

    public func serialize() -> [UInt8]