Class: NTFS::IndexAllocation
- Inherits:
-
Object
- Object
- NTFS::IndexAllocation
- Defined in:
- lib/fs/ntfs/attrib_index_allocation.rb
Instance Attribute Summary collapse
-
#data_run ⇒ Object
readonly
Returns the value of attribute data_run.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(buf, header) ⇒ IndexAllocation
constructor
A new instance of IndexAllocation.
Constructor Details
#initialize(buf, header) ⇒ IndexAllocation
Returns a new instance of IndexAllocation.
11 12 13 14 15 16 17 |
# File 'lib/fs/ntfs/attrib_index_allocation.rb', line 11 def initialize(buf, header) raise "MIQ(NTFS::IndexAllocation.initialize) Buffer must be DataRun (passed #{buf.class.name})" unless buf.kind_of?(DataRun) raise "MIQ(NTFS::IndexAllocation.initialize) Header must be AttribHeader (passed #{header.class.name})" unless header.kind_of?(NTFS::AttribHeader) @data_run = buf @header = header end |
Instance Attribute Details
#data_run ⇒ Object (readonly)
Returns the value of attribute data_run.
9 10 11 |
# File 'lib/fs/ntfs/attrib_index_allocation.rb', line 9 def data_run @data_run end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
9 10 11 |
# File 'lib/fs/ntfs/attrib_index_allocation.rb', line 9 def header @header end |
Class Method Details
.create_from_header(header, buf) ⇒ Object
3 4 5 6 7 |
# File 'lib/fs/ntfs/attrib_index_allocation.rb', line 3 def self.create_from_header(header, buf) return IndexAllocation.new(buf, header) if header.containsFileNameIndexes? $log.debug("Skipping #{header.typeName} for name <#{header.name}>") if $log nil end |