struct
MQTT::Protocol::IO
- MQTT::Protocol::IO
- Struct
- Value
- Object
Defined in:
mqtt/protocol/io.crConstructors
Macro Summary
Instance Method Summary
- #io : IO
- #read_byte
- #read_bytes(len : Int | Nil = nil)
- #read_int
- #read_packet : Packet
- #read_remaining_length
- #read_string(len : UInt16 | Nil = nil)
- #write(packet : Packet)
- #write_byte(b : UInt8)
- #write_bytes(bytes : Bytes)
- #write_bytes(bytes : Nil)
- #write_bytes_raw(bytes : Bytes)
- #write_int(int : Int)
- #write_packet(packet : Packet)
- #write_remaining_length(length)
- #write_string(str : String)
- #write_string(str : Nil)
Constructor Detail
def self.new(io : ::IO, byte_format : ::IO::ByteFormat::BigEndian.class = ::IO::ByteFormat::NetworkEndian)
#