DeserializableMessage
public protocol DeserializableMessage : CustomDebugStringConvertible
A message that can be constructed from a sequence of bytes (ArraySlice<UInt8>
)
-
The title of the message. This is referred to as CMD in Skarhoj’s protocol documentation
Declaration
Swift
static var title: Message.Title { get }
-
Initialize a new message from the given binary string
Throws
when the message cannot be interpretedDeclaration
Swift
init(with bytes: ArraySlice<UInt8>) throws
Parameters
bytes
the binary string to interpret