GroupStart.parse constructor
GroupStart.parse(
- ByteData data_
Implementation
factory GroupStart.parse(ByteData data_) {
if (data_.lengthInBytes < GroupStart.mavlinkEncodedLength) {
var len = GroupStart.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var timeUsec = data_.getUint64(0, Endian.little);
var groupId = data_.getUint32(8, Endian.little);
var missionChecksum = data_.getUint32(12, Endian.little);
return GroupStart(
timeUsec: timeUsec, groupId: groupId, missionChecksum: missionChecksum);
}