class AMQ::Protocol::Confirm::Select

Attributes

nowait[R]

Public Class Methods

decode(data) click to toggle source

@return

# File lib/amq/protocol/client.rb, line 2255
def self.decode(data)
  offset = 0
  bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
  offset += 1
  nowait = (bit_buffer & (1 << 0)) != 0
  self.new(nowait)
end
encode(channel, nowait) click to toggle source

@return

u'nowait = false'
# File lib/amq/protocol/client.rb, line 2274
def self.encode(channel, nowait)
  buffer = @packed_indexes.dup
  bit_buffer = 0
  bit_buffer = bit_buffer | (1 << 0) if nowait
  buffer << [bit_buffer].pack(PACK_CHAR)
  MethodFrame.new(buffer, channel)
end
has_content?() click to toggle source
# File lib/amq/protocol/client.rb, line 2268
def self.has_content?
  false
end
new(nowait) click to toggle source
# File lib/amq/protocol/client.rb, line 2264
def initialize(nowait)
  @nowait = nowait
end