Class: Rex::OLE::SubStorage
- Defined in:
- lib/rex/ole/substorage.rb
Instance Attribute Summary
Attributes inherited from DirEntry
#_sidChild, #_sidLeftSib, #_sidRightSib, #sid
Instance Method Summary collapse
- #close ⇒ Object
-
#create_storage(name, mode = STGM_WRITE) ⇒ Object
storage handling stuff.
-
#create_stream(name, mode = STGM_WRITE) ⇒ Object
stream handling stuff.
-
#initialize(stg) ⇒ SubStorage
constructor
A new instance of SubStorage.
- #open_storage(name, mode = STGM_WRITE) ⇒ Object
- #open_stream(name, mode = STGM_READ) ⇒ Object
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.
16 17 18 19 20 |
# File 'lib/rex/ole/substorage.rb', line 16 def initialize(stg) super @_mse = STGTY_STORAGE end |
Instance Method Details
#close ⇒ Object
23 24 |
# File 'lib/rex/ole/substorage.rb', line 23 def close end |
#create_storage(name, mode = STGM_WRITE) ⇒ Object
storage handling stuff
38 39 40 |
# File 'lib/rex/ole/substorage.rb', line 38 def create_storage(name, mode=STGM_WRITE) @stg.create_storage(name, mode, self) end |
#create_stream(name, mode = STGM_WRITE) ⇒ Object
stream handling stuff
28 29 30 |
# File 'lib/rex/ole/substorage.rb', line 28 def create_stream(name, mode=STGM_WRITE) @stg.create_stream(name, mode, self) end |
#open_storage(name, mode = STGM_WRITE) ⇒ Object
42 43 44 |
# File 'lib/rex/ole/substorage.rb', line 42 def open_storage(name, mode=STGM_WRITE) @stg.open_storage(name, mode, self) end |
#open_stream(name, mode = STGM_READ) ⇒ Object
32 33 34 |
# File 'lib/rex/ole/substorage.rb', line 32 def open_stream(name, mode=STGM_READ) @stg.open_stream(name, mode, self) end |