Class: Ariblib::TerrestrialDeliverySystemDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::TerrestrialDeliverySystemDescriptor
- 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
217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/ariblib/Descriptor.rb', line 217 def parse(h,bs,tag,descriptor_length) ret=[] area_code = bs.read 12 #bslbf guard_interval = bs.read 2 #bslbf transmission_mode = bs.read 2 #bslbf len=descriptor_length-2 (len/2).times do frequency = bs.read 16 #uimsbf ret << frequency end h[:TDS]=[area_code,transmission_mode,ret] end |