Class/Module Index [+]

Quicksearch

AMQ::Protocol::Channel::Flow

Attributes

active[R]

Public Class Methods

decode(data) click to toggle source

@return

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

@return

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.