Crabbit::AMQP::Encoder
Streaming encoder for generic AMQP 1.0 values.
The encoder writes directly to any IO. Use .encode(value) for a newly
allocated Bytes result or .encode(value, io) to avoid the intermediate
output allocation.
Constructors
Class methods
Instance methods
to_slice
Returns a copy of bytes written to an IO::Memory destination.
Raises CodecError when the encoder was constructed with another IO.
Writes a numeric descriptor followed by a generic AMQP value.
Writes a numeric descriptor followed by AMQP binary data.
Writes a numeric descriptor followed by an AMQP list.
Writes a numeric descriptor followed by an AMQP map.