# File lib/amq/protocol/frame.rb, line 108 def encode s = [self.class.id, @channel, @payload.bytesize].pack(PACK_CHAR_UINT16_UINT32) s << self.class.encoded_payload(@payload) s << FINAL_OCTET s end
TODO: remove once we are sure none of the clients
uses this method directly
@api private
# File lib/amq/protocol/frame.rb, line 100 def encode_to_array components = [] components << [self.class.id, @channel, @payload.bytesize].pack(PACK_CHAR_UINT16_UINT32) components << self.class.encoded_payload(@payload) components << FINAL_OCTET components end
Generated with the Darkfish Rdoc Generator 2.