struct

Amqp::Wire::Frame

Inherits Struct < Value < Object

Constructors

new(type : FrameType, channel : UInt16, payload : Bytes)
Source
read(io : IO, frame_max : UInt32) : Frame

frame_max=0 means "no limit" per AMQP 0-9-1; the codec applies a 128 KiB ceiling in that case (per docs/05-wire-0-9-1/00-frames.md §5).

Source

Class methods

prefix(type : FrameType, channel : UInt16, payload_size : Int) : Bytes
Source
write_prefix(io : IO, type : FrameType, channel : UInt16, payload_size : Int) : Nil
Source

Instance methods

channel
Source
payload
Source
type
Source
write(io : IO) : Nil
Source