# File lib/rex/ole/propset.rb, line 101 def <<(ps) @propsets << ps end
# File lib/rex/ole/propset.rb, line 105 def pack buf = '' # First, add the header buf << [ @byte_order, @ole_version, @os_version, @os_platform ].pack('vvvv') buf << @clsid.pack buf << [@propsets.length].pack('V') # Pack all the PropertySet children data = [] @propsets.each { |p| data << p.pack_data } # Next, add all the FMTID and Offset headers off = buf.length + (20 * @propsets.length) @propsets.each_with_index { |ps,x| buf << ps.pack_fno(off) off += data[x].length } # Finally, add all the data buf << data.join buf end
Generated with the Darkfish Rdoc Generator 2.