# File lib/rex/ole/propset.rb, line 51 def <<(val) @properties << val end
# File lib/rex/ole/propset.rb, line 59 def pack_data # Pack all the property data data = [] dlen = 0 @properties.each { |p| dat = p.pack_data dlen += dat.length data << dat } buf = '' # First the header off = 8 + (@properties.length * 8) buf << [ off + dlen, @properties.length ].pack('V*') # Now, the Property Id and Offset for each @properties.each_with_index { |p,x| buf << p.pack_pio(off) off += data[x].length } # Finally, all the data buf << data.join buf end
Generated with the Darkfish Rdoc Generator 2.