Class: BMFF::Box::ChunkOffset

Inherits:
Full
  • Object
show all
Defined in:
lib/bmff/box/chunk_offset.rb

Overview

vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:

Instance Attribute Summary collapse

Attributes inherited from Full

#flags, #version

Attributes inherited from Base

#io, #largesize, #offset, #parent, #size, #type, #usertype

Instance Method Summary collapse

Methods inherited from Base

#actual_size, #container?, #eob?, #parse, register_box, register_uuid_box, #remaining_size, #root, #seek_to_end

Instance Attribute Details

#chunk_offsetObject

Returns the value of attribute chunk_offset.



5
6
7
# File 'lib/bmff/box/chunk_offset.rb', line 5

def chunk_offset
  @chunk_offset
end

#entry_countObject

Returns the value of attribute entry_count.



5
6
7
# File 'lib/bmff/box/chunk_offset.rb', line 5

def entry_count
  @entry_count
end

Instance Method Details

#parse_dataObject



8
9
10
11
12
13
14
15
# File 'lib/bmff/box/chunk_offset.rb', line 8

def parse_data
  super
  @entry_count = io.get_uint32
  @chunk_offset = []
  @entry_count.times do
    @chunk_offset << io.get_uint32
  end
end