Class: BMFF::Box::FileType
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#compatible_brands ⇒ Object
Returns the value of attribute compatible_brands.
-
#major_brand ⇒ Object
Returns the value of attribute major_brand.
-
#minor_version ⇒ Object
Returns the value of attribute minor_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
#compatible_brands ⇒ Object
Returns the value of attribute compatible_brands.
5 6 7 |
# File 'lib/bmff/box/file_type.rb', line 5 def compatible_brands @compatible_brands end |
#major_brand ⇒ Object
Returns the value of attribute major_brand.
5 6 7 |
# File 'lib/bmff/box/file_type.rb', line 5 def major_brand @major_brand end |
#minor_version ⇒ Object
Returns the value of attribute minor_version.
5 6 7 |
# File 'lib/bmff/box/file_type.rb', line 5 def minor_version @minor_version end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/bmff/box/file_type.rb', line 8 def parse_data super @major_brand = io.get_ascii(4) @minor_version = io.get_uint32 @compatible_brands = [] until eob? @compatible_brands << io.get_ascii(4) end end |