Class/Module Index [+]

Quicksearch

AMQ::Protocol::Basic::Ack

Attributes

delivery_tag[R]
multiple[R]

Public Class Methods

decode(data) click to toggle source

@return

# File lib/amq/protocol/client.rb, line 1982
def self.decode(data)
  offset = 0
  delivery_tag = AMQ::Hacks.unpack_64_big_endian(data[offset, 8]).first
  offset += 8
  bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
  offset += 1
  multiple = (bit_buffer & (1 << 0)) != 0
  self.new(delivery_tag, multiple)
end
encode(channel, delivery_tag, multiple) click to toggle source

@return

u'delivery_tag = false', u'multiple = false'
# File lib/amq/protocol/client.rb, line 2004
def self.encode(channel, delivery_tag, multiple)
  buffer = ''
  buffer << @packed_indexes
  buffer << AMQ::Hacks.pack_64_big_endian(delivery_tag)
  bit_buffer = 0
  bit_buffer = bit_buffer | (1 << 0) if multiple
  buffer << [bit_buffer].pack(PACK_CHAR)
  MethodFrame.new(buffer, channel)
end
has_content?() click to toggle source
# File lib/amq/protocol/client.rb, line 1998
def self.has_content?
  false
end
new(delivery_tag, multiple) click to toggle source
# File lib/amq/protocol/client.rb, line 1993
def initialize(delivery_tag, multiple)
  @delivery_tag = delivery_tag
  @multiple = multiple
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.