Parent

Class/Module Index [+]

Quicksearch

Rex::OLE::Property

Public Class Methods

new(id, type, data) click to toggle source
# File lib/rex/ole/propset.rb, line 16
def initialize(id, type, data)
        @id = id
        @type = type
        @data = data
end

Public Instance Methods

pack_data() click to toggle source
# File lib/rex/ole/propset.rb, line 26
def pack_data
        buf = [ @type ].pack('V')
        case @type
        when VT_BLOB
                buf << [ @data.length ].pack('V')
        when VT_CF
                buf << [ 4 + @data.length, -1 ].pack('V*')
        end
        buf << @data
        buf
end
pack_pio(off = 0) click to toggle source
# File lib/rex/ole/propset.rb, line 22
def pack_pio(off = 0)
        [ @id, off ].pack('V*')
end
to_s() click to toggle source
# File lib/rex/ole/propset.rb, line 38
def to_s
        "Rex::OLE::Property - to_s unimplemented"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.