lib/amq/protocol/table_value_decoder.rb in amq-protocol-2.0.0 vs lib/amq/protocol/table_value_decoder.rb in amq-protocol-2.0.1
- old
+ new
@@ -33,9 +33,15 @@
i = case type
when TYPE_STRING
v, offset = decode_string(data, offset)
v
+ when TYPE_BYTE_ARRAY
+ # Ruby doesn't have a direct counterpart to
+ # ByteBuffer or byte[], so using a string feels
+ # more appropriate than an array of fixnums
+ v, offset = decode_string(data, offset)
+ v
when TYPE_INTEGER
v, offset = decode_integer(data, offset)
v
when TYPE_DECIMAL
v, offset = decode_big_decimal(data, offset)