MissionItemReached.parse constructor

MissionItemReached.parse(
  1. ByteData data_
)

Implementation

factory MissionItemReached.parse(ByteData data_) {
  if (data_.lengthInBytes < MissionItemReached.mavlinkEncodedLength) {
    var len = MissionItemReached.mavlinkEncodedLength - data_.lengthInBytes;
    var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
    data_ = Uint8List.fromList(d).buffer.asByteData();
  }
  var seq = data_.getUint16(0, Endian.little);

  return MissionItemReached(seq: seq);
}