Class: Ariblib::ShortEventDescriptor

Inherits:
Descriptor show all
Defined in:
lib/ariblib/Descriptor.rb

Instance Method Summary collapse

Methods inherited from Descriptor

#initialize

Constructor Details

This class inherits a constructor from Ariblib::Descriptor

Instance Method Details

#parse(h, bs, tag, descriptor_length) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/ariblib/Descriptor.rb', line 16

def parse(h,bs,tag,descriptor_length)

	iso_639_language_code  =bs.get3 #24 bslbf
	event_name_length      =bs.getc #8 uimsbf
	event_name_char       =Ariblib::String.new(bs,event_name_length).to_utf8
	text_length            =bs.getc #8 uimsbf
	text_char             =Ariblib::String.new(bs,text_length).to_utf8
	h[:title]=event_name_char
	h[:desc ]=text_char
end