Class: FileData::IlstDataBoxParser
- Inherits:
-
Object
- Object
- FileData::IlstDataBoxParser
- Defined in:
- lib/file_data/formats/mpeg4/box_parsers/ilst_data_box.rb
Overview
Parser for the ‘data’ box
Class Method Summary collapse
Class Method Details
.parse(box) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/file_data/formats/mpeg4/box_parsers/ilst_data_box.rb', line 4 def self.parse(box) view = box.content_stream # TO DO - Currently a text value is always assumed... data_type = view.read_value(4) locale = view.read_value(4) value = view.read_ascii(view.remaining_bytes) DataBox.new(data_type, locale, value) end |