Class: Rex::OLE::SubStorage

Inherits:
DirEntry show all
Defined in:
lib/rex/ole/substorage.rb

Instance Attribute Summary

Attributes inherited from DirEntry

#_sidChild, #_sidLeftSib, #_sidRightSib, #sid

Instance Method Summary collapse

Methods inherited from DirEntry

#<<, #each, #find_by_sid, #find_stream_by_name_and_type, #from_s, #length, #name, #name=, #pack, #start_sector, #start_sector=, #to_s, #type, #type=

Constructor Details

#initialize(stg) ⇒ SubStorage

Returns a new instance of SubStorage.



13
14
15
16
17
# File 'lib/rex/ole/substorage.rb', line 13

def initialize(stg)
  super

  @_mse = STGTY_STORAGE
end

Instance Method Details

#closeObject



20
21
# File 'lib/rex/ole/substorage.rb', line 20

def close
end

#create_storage(name, mode = STGM_WRITE) ⇒ Object

storage handling stuff



35
36
37
# File 'lib/rex/ole/substorage.rb', line 35

def create_storage(name, mode=STGM_WRITE)
  @stg.create_storage(name, mode, self)
end

#create_stream(name, mode = STGM_WRITE) ⇒ Object

stream handling stuff



25
26
27
# File 'lib/rex/ole/substorage.rb', line 25

def create_stream(name, mode=STGM_WRITE)
  @stg.create_stream(name, mode, self)
end

#open_storage(name, mode = STGM_WRITE) ⇒ Object



39
40
41
# File 'lib/rex/ole/substorage.rb', line 39

def open_storage(name, mode=STGM_WRITE)
  @stg.open_storage(name, mode, self)
end

#open_stream(name, mode = STGM_READ) ⇒ Object



29
30
31
# File 'lib/rex/ole/substorage.rb', line 29

def open_stream(name, mode=STGM_READ)
  @stg.open_stream(name, mode, self)
end