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.



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

def initialize(stg)
	super

	@_mse = STGTY_STORAGE
end

Instance Method Details

#closeObject



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