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.titlebytes. This property is used by theSerializable.serialize()methodDeclaration
Swift
var dataBytes: [UInt8] { get } -
serialize()Extension methodUndocumented
Declaration
Swift
public func serialize() -> [UInt8]
View on GitHub
SerializableMessage Protocol Reference