Parent

Class 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 642
642:         def self.decode(data)
643:           offset = 0
644:           bit_buffer = data[offset, 1].unpack(PACK_CHAR).first
645:           offset += 1
646:           active = (bit_buffer & (1 << 0)) != 0
647:           self.new(active)
648:         end
encode(channel, active) click to toggle source

@return

     # File lib/amq/protocol/client.rb, line 661
661:         def self.encode(channel, active)
662:           buffer = ""
663:           buffer << @packed_indexes
664:           bit_buffer = 0
665:           bit_buffer = bit_buffer | (1 << 0) if active
666:           buffer << [bit_buffer].pack(PACK_CHAR)
667:           MethodFrame.new(buffer, channel)
668:         end
has_content?() click to toggle source
     # File lib/amq/protocol/client.rb, line 655
655:         def self.has_content?
656:           false
657:         end
new(active) click to toggle source
     # File lib/amq/protocol/client.rb, line 651
651:         def initialize(active)
652:           @active = active
653:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.