Sha256: 903cc3c1dd67b3cd107c26592ebae7188ab68f034a19e975cd599cf1909b6a87
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
module FileData # Parser for the 'data' box class IlstDataBoxParser 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 end DataBox = Struct.new(:data_type, :locale, :value_text) end
Version data entries
5 entries across 5 versions & 1 rubygems