Class: Ole::Storage::AllocationTable::Small

Inherits:
Ole::Storage::AllocationTable show all
Defined in:
lib/ole/storage/base.rb

Constant Summary

Constants inherited from Ole::Storage::AllocationTable

AVAIL, BAT, EOC, META_BAT

Instance Attribute Summary

Attributes inherited from Ole::Storage::AllocationTable

#block_size, #io, #ole

Instance Method Summary collapse

Methods inherited from Ole::Storage::AllocationTable

#[]=, #blocks_to_ranges, #chain, #free_block, #load, #open, #ranges, #read, #resize_chain, #to_s, #truncate, #truncate!

Constructor Details

#initialize(*args) ⇒ Small

Returns a new instance of Small.



585
586
587
588
589
# File 'lib/ole/storage/base.rb', line 585

def initialize(*args)
	super
	@block_size = 1 << @ole.header.s_shift
	@io = @ole.sb_file
end