Class: Ariblib::DataContentDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::DataContentDescriptor
- Defined in:
- lib/ariblib/Descriptor.rb
Instance Method Summary collapse
Methods inherited from Descriptor
Constructor Details
This class inherits a constructor from Ariblib::Descriptor
Instance Method Details
#parse(h, bs, tag, descriptor_length) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ariblib/Descriptor.rb', line 75 def parse(h,bs,tag,descriptor_length) data_component_id = bs.read 16 #uimsbf entry_component = bs.getc #8 uimsbf selector_length = bs.getc #8 uimsbf selector_byte = bs.str(selector_length) num_of_component_ref = bs.getc #8 uimsbf component_ref = bs.str(num_of_component_ref) iso_639_language_code = bs.read 24 #bslbf text_length = bs.getc #8 uimsbf text_char = Ariblib::String.new(bs,text_length).to_utf8 h[:data_component]=text_char end |