Method: NMEAPlus::Message::AIS::VDM#full_armored_ais_payload
- Defined in:
-
lib/nmea_plus/message/ais/vdm.rb,
lib/nmea_plus/message/ais/vdm.rb more...
the full encoded payload as it was received – spanning multiple messages
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/nmea_plus/message/ais/vdm.rb', line 72 def full_armored_ais_payload # get the full message and fill bits for the last one ptr = self ret = "" loop do break if ptr.raw_ais_payload.nil? # guard against rare instances of message corruption ret << ptr.raw_ais_payload break if ptr.next_part.nil? # stop when we run out of messages in the chain ptr = ptr.next_part end ret end |