d += encodestring("null")
d += [-1].pack("N")
d += encodevalue(n)
+ d
end
# Pack variables as AMF
bodies.times do # Read each body
name = AMF.getstring(@request) # | get message name
index = AMF.getstring(@request) # | get index in response sequence
- bytes = AMF.getlong(@request) # | get total size in bytes
+ AMF.getlong(@request) # | get total size in bytes
args = AMF.getvalue(@request) # | get response (probably an array)
result = @dispatch.call(name, *args)
t = line.chomp
if t =~ /^([\w:]+)\/(\w+)\s+(.+)$/
tag = $1; type = $2; values = $3
- if values == '-' then autotags[type][tag] = []
- else autotags[type][tag] = values.split(',').sort.reverse end
+ if values == '-'
+ autotags[type][tag] = []
+ else
+ autotags[type][tag] = values.split(',').sort.reverse
+ end
end
end
end