# File lib/amq/protocol/frame.rb, line 45 def self.decode_header(header) raise EmptyResponseError if header == nil type_id, channel, size = header.unpack(PACK_CHAR_UINT16_UINT32) type = TYPES_REVERSE[type_id] raise FrameTypeError.new(TYPES_OPTIONS) unless type [type, channel, size] end