serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, size, Endian.little);
  data_.setUint16(4, width, Endian.little);
  data_.setUint16(6, height, Endian.little);
  data_.setUint16(8, packets, Endian.little);
  data_.setUint8(10, type);
  data_.setUint8(11, payload);
  data_.setUint8(12, jpgQuality);
  return data_;
}