struct MQTT::Protocol::IO

Defined in:

mqtt/protocol/io.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(io : ::IO, byte_format : ::IO::ByteFormat::BigEndian.class = ::IO::ByteFormat::NetworkEndian) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def io : IO #

[View source]
def read_byte #

[View source]
def read_bytes(len : Int | Nil = nil) #

[View source]
def read_int #

[View source]
def read_packet : Packet #

[View source]
def read_remaining_length #

[View source]
def read_string(len : UInt16 | Nil = nil) #

[View source]
def write(packet : Packet) #

[View source]
def write_byte(b : UInt8) #

[View source]
def write_bytes(bytes : Bytes) #

[View source]
def write_bytes(bytes : Nil) #

[View source]
def write_bytes_raw(bytes : Bytes) #

[View source]
def write_int(int : Int) #

[View source]
def write_packet(packet : Packet) #

[View source]
def write_remaining_length(length) #

[View source]
def write_string(str : String) #

[View source]
def write_string(str : Nil) #

[View source]