Parent

Class 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 1863
1863:         def self.decode(data)
1864:           offset = 0
1865:           delivery_tag = AMQ::Hacks.unpack_64_big_endian(data[offset, 8]).first
1866:           offset += 8
1867:           bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
1868:           offset += 1
1869:           multiple = (bit_buffer & (1 << 0)) != 0
1870:           self.new(delivery_tag, multiple)
1871:         end
encode(channel, delivery_tag, multiple) click to toggle source

@return

      # File lib/amq/protocol/client.rb, line 1885
1885:         def self.encode(channel, delivery_tag, multiple)
1886:           buffer = ""
1887:           buffer << @packed_indexes
1888:           buffer << AMQ::Hacks.pack_64_big_endian(delivery_tag)
1889:           bit_buffer = 0
1890:           bit_buffer = bit_buffer | (1 << 0) if multiple
1891:           buffer << [bit_buffer].pack(PACK_CHAR)
1892:           MethodFrame.new(buffer, channel)
1893:         end
has_content?() click to toggle source
      # File lib/amq/protocol/client.rb, line 1879
1879:         def self.has_content?
1880:           false
1881:         end
new(delivery_tag, multiple) click to toggle source
      # File lib/amq/protocol/client.rb, line 1874
1874:         def initialize(delivery_tag, multiple)
1875:           @delivery_tag = delivery_tag
1876:           @multiple = multiple
1877:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.