struct Extron::SIS::Command(*T)

Overview

Structure for representing a SIS device command.

Commands are composed from a set of fields. The contents and types of these are arbitrary, however they must be capable of serialising to an IO.

Defined in:

extron/sis/command.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(*fields : *T) #

[View source]

Macro Detail

macro [](*fields) #

Syntactical suger for Command definition. Provides the ability to express command fields in the same way as Byte objects and other similar collections from the Crystal std lib.


[View source]

Instance Method Detail

def to_io(io : IO, format = IO::ByteFormat::SystemEndian) #

Writes self to the passed io.


[View source]
def to_s(io : IO) #

Serialises self in a format suitable for log messages.


[View source]