class

DispatchProtocol

Inherits BinData < Reference < Object

Constants

ENDIAN = ["big"]
KLASS_NAME = [DispatchProtocol]
PARTS = [{type: "enum", name: message, cls: UInt8, onlyif: nil, verify: nil, value: nil, encoding: MessageType}, {type: "string", name: ip_address, cls: String, onlyif: nil, verify: nil, length: nil, value: nil, encoding: nil}, {type: "basic", name: id_or_port, cls: UInt64, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: data_size, cls: UInt32, onlyif: nil, verify: nil, value: -> do data.size end}, {type: "bytes", name: data, cls: Bytes, onlyif: nil, verify: nil, length: -> do data_size end, value: nil}] of Nil
REMAINING = [] of Nil

Class methods

bit_fields
Source

Instance methods

__format__
Source
data
data=(data : Bytes)
data_size
data_size=(data_size : UInt32)
id_or_port
id_or_port=(id_or_port : UInt64)
ip_address
ip_address=(ip_address : String)
message
message=(message : MessageType)

Macros

dispatch_protocol(name, onlyif = nil, verify = nil, value = nil)
Source
place_dispatch_example_dispatch_protocol(name, onlyif = nil, verify = nil, value = nil)
Source

Nested types