Class: BMFF::Box::Full
- Inherits:
-
Object
- Object
- BMFF::Box::Full
- Defined in:
- lib/bmffglitch/bmffex.rb
Instance Method Summary collapse
Instance Method Details
#compose(data) ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/bmffglitch/bmffex.rb', line 60 def compose(data) sio = StringIO.new("", "r+") sio.set_encoding("ascii-8bit") sio.extend(BMFF::BinaryAccessor) sio.write_uint8(@version) sio.write_uint24(@flags) super(sio.string + data) end |
#parse_data ⇒ Object
70 71 72 73 74 |
# File 'lib/bmffglitch/bmffex.rb', line 70 def parse_data @version = io.get_uint8 @flags = io.get_uint24 super end |