Module: LiveF1::Packet::Type::Long
- Included in:
- Car::PositionHistory, Sys::Commentary, Sys::Copyright, Sys::Notice, Sys::Speed
- Defined in:
- lib/live_f1/packet.rb
Instance Method Summary collapse
-
#length ⇒ Object
Long packets use all 7 bits of the header data to represent the packet length.
- #spare_bits ⇒ Object
Instance Method Details
#length ⇒ Object
Long packets use all 7 bits of the header data to represent the packet length. This allows for a maximum packet length of 127 bytes.
35 36 37 |
# File 'lib/live_f1/packet.rb', line 35 def length header.data end |
#spare_bits ⇒ Object
39 40 41 |
# File 'lib/live_f1/packet.rb', line 39 def spare_bits 0 end |