class TSparser::Descriptor

Constants

DescriptorTable

ARIB STD-B10 Table5-3

Public Class Methods

new(binary) click to toggle source
# File lib/definition/descriptor.rb, line 18
def self.new(binary)
  now_point               = binary.bit_pointer / 8
  descriptor_tag          = binary.b(now_point + 0)
  descriptor_length       = binary.b(now_point + 1)
  descriptor_whole_binary = binary.read_bit_as_binary(descriptor_length * 8 + 16)
  return DescriptorTable[descriptor_tag].new(descriptor_whole_binary)
end