abstract struct AMQ::Protocol::Frame
- AMQ::Protocol::Frame
- Struct
- Value
- Object
Direct Known Subclasses
- AMQ::Protocol::Frame::Body
- AMQ::Protocol::Frame::BytesBody
- AMQ::Protocol::Frame::Header
- AMQ::Protocol::Frame::Heartbeat
- AMQ::Protocol::Frame::Method
Defined in:
amq/protocol/frames.crConstructors
Class Method Summary
-
.from_io(io, format = IO::ByteFormat::NetworkEndian, & : Frame -> _)
Parse a frame from an IO
-
.from_io(io, format = IO::ByteFormat::NetworkEndian)
Parse a frame from an IO
Instance Method Summary
- #bytesize : UInt32
- #channel : UInt16
- #to_io(io : IO, format : IO::ByteFormat)
- #to_slice(format = IO::ByteFormat::SystemEndian) : Bytes
- #type : UInt8
- #wrap(io, format : IO::ByteFormat, &) : Nil
Constructor Detail
Class Method Detail
Parse a frame from an IO
Requires a block, because the Body is not buffered and can instead be streamed efficiently.
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.