Class: BMFF::Box::Handler
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#handler_type ⇒ Object
Returns the value of attribute handler_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pre_defined ⇒ Object
Returns the value of attribute pre_defined.
-
#reserved1 ⇒ Object
Returns the value of attribute reserved1.
Attributes inherited from Full
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, #remaining_size, #seek_to_end
Instance Attribute Details
#handler_type ⇒ Object
Returns the value of attribute handler_type.
5 6 7 |
# File 'lib/bmff/box/handler.rb', line 5 def handler_type @handler_type end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/bmff/box/handler.rb', line 5 def name @name end |
#pre_defined ⇒ Object
Returns the value of attribute pre_defined.
5 6 7 |
# File 'lib/bmff/box/handler.rb', line 5 def pre_defined @pre_defined end |
#reserved1 ⇒ Object
Returns the value of attribute reserved1.
5 6 7 |
# File 'lib/bmff/box/handler.rb', line 5 def reserved1 @reserved1 end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/bmff/box/handler.rb', line 8 def parse_data super @pre_defined = io.get_uint32 @handler_type = io.get_ascii(4) @reserved1 = [io.get_uint32, io.get_uint32, io.get_uint32] @name = io.get_null_terminated_string(remaining_size) unless eob? end |