Class: Ariblib::ServiceListDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::ServiceListDescriptor
- 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
250 251 252 253 254 255 256 257 258 |
# File 'lib/ariblib/Descriptor.rb', line 250 def parse(h,bs,tag,descriptor_length) ret=[] (descriptor_length/3).times do service_id = bs.read 16 #uimsbf service_type = bs.read 8 #uimsbf ret << [service_id,service_type] end h[:service_list]=ret end |