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.



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

def initialize(stg)
	super

	@_mse = STGTY_STORAGE
end

Instance Method Details

#closeObject



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

def close
end

#create_storage(name, mode = STGM_WRITE) ⇒ Object

storage handling stuff



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

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

#create_stream(name, mode = STGM_WRITE) ⇒ Object

stream handling stuff



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

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

#open_storage(name, mode = STGM_WRITE) ⇒ Object



43
44
45
# File 'lib/rex/ole/substorage.rb', line 43

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

#open_stream(name, mode = STGM_READ) ⇒ Object



33
34
35
# File 'lib/rex/ole/substorage.rb', line 33

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