class TSparser::TransportPacket
Define data-structure of transport packet. This is following
iso13818-1, 2.4.3.2, Table2-2 and 2.4.3.5, Table2-6 (adaptation field).
Public Instance Methods
pid()
click to toggle source
Especial parsing of PID for fast calculation.
# File lib/definition/transport_packet.rb, line 30 def pid return @pid ||= (@binary.b(1, 0..4) << 8) + @binary.b(2) end