abstract struct AMQ::Protocol::Frame

Direct Known Subclasses

Defined in:

amq/protocol/frames.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(channel : UInt16, bytesize : UInt32) #

[View source]

Class Method Detail

def self.from_io(io, format = IO::ByteFormat::NetworkEndian, & : Frame -> _) #

Parse a frame from an IO

Requires a block, because the Body is not buffered and can instead be streamed efficiently.


[View source]
def self.from_io(io, format = IO::ByteFormat::NetworkEndian) #

Parse a frame from an IO

Note that this method buffers BytesBody frames, only use this method if you don't require the best performance.


[View source]

Instance Method Detail

def bytesize : UInt32 #

[View source]
def channel : UInt16 #

[View source]
abstract def to_io(io : IO, format : IO::ByteFormat) #

[View source]
def to_slice(format = IO::ByteFormat::SystemEndian) : Bytes #

[View source]
abstract def type : UInt8 #

[View source]
def wrap(io, format : IO::ByteFormat, &) : Nil #

[View source]