Class Ole::Storage::AllocationTable::Big
In: lib/ole/storage/base.rb
Parent: AllocationTable
String Data Lpstr Clsid Lpwstr Section Enumerable DateTime FileTime Constants Variant::Constants Storage\n[lib/ole/storage/base.rb\nlib/ole/storage/file_system.rb\nlib/ole/storage/meta_data.rb] PropertySet lib/ole/storage/file_system.rb lib/ole/types/property_set.rb lib/ole/types/base.rb Constants Constants Variant Types Ole dot/m_9_0.png

Methods

Public Class methods

[Source]

     # File lib/ole/storage/base.rb, line 562
562:                                 def initialize(*args)
563:                                         super
564:                                         @block_size = 1 << @ole.header.b_shift
565:                                         @io = @ole.io
566:                                 end

Public Instance methods

Big blocks are kind of -1 based, in order to not clash with the header.

[Source]

     # File lib/ole/storage/base.rb, line 569
569:                                 def blocks_to_ranges blocks, size
570:                                         super blocks.map { |b| b + 1 }, size
571:                                 end

[Validate]