Class: Ariblib::ComponentDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::ComponentDescriptor
- 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
113 114 115 116 117 118 119 120 121 122 |
# File 'lib/ariblib/Descriptor.rb', line 113 def parse(h,bs,tag,descriptor_length) text_length = descriptor_length - 6#8 uimsbf reserved_future_use = bs.read 4 #bslbf stream_content = bs.read 4 #uimsbf component_type = bs.getc #8 uimsbf component_tag = bs.getc #8 uimsbf iso_639_language_code = bs.read 24 #bslbf text_char = Ariblib::String.new(bs,text_length).to_utf8 h[:component]=text_char end |