Class/Module Index [+]

Quicksearch

AMQ::Protocol::HeaderFrame

Public Instance Methods

body_size() click to toggle source
# File lib/amq/protocol/frame.rb, line 113
def body_size
  decode_payload
  @body_size
end
decode_payload() click to toggle source
# File lib/amq/protocol/frame.rb, line 133
def decode_payload
  @decoded_payload ||= begin
                         @klass_id, @weight = @payload.unpack(PACK_UINT16_X2)
                         # the total size of the content body, that is, the sum of the body sizes for the
                         # following content body frames. Zero indicates that there are no content body frames.
                         # So this is NOT related to this very header frame!
                         @body_size         = AMQ::Hacks.unpack_64_big_endian(@payload[4..11]).first
                         @data              = @payload[12..-1]
                         @properties        = Basic.decode_properties(@data)
                       end
end
final?() click to toggle source
# File lib/amq/protocol/frame.rb, line 109
def final?
  false
end
klass_id() click to toggle source
# File lib/amq/protocol/frame.rb, line 123
def klass_id
  decode_payload
  @klass_id
end
properties() click to toggle source
# File lib/amq/protocol/frame.rb, line 128
def properties
  decode_payload
  @properties
end
weight() click to toggle source
# File lib/amq/protocol/frame.rb, line 118
def weight
  decode_payload
  @weight
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.