RemoteLogBlockStatus.parse constructor
RemoteLogBlockStatus.parse(
- ByteData data_
Implementation
factory RemoteLogBlockStatus.parse(ByteData data_) {
if (data_.lengthInBytes < RemoteLogBlockStatus.mavlinkEncodedLength) {
var len = RemoteLogBlockStatus.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var seqno = data_.getUint32(0, Endian.little);
var targetSystem = data_.getUint8(4);
var targetComponent = data_.getUint8(5);
var status = data_.getUint8(6);
return RemoteLogBlockStatus(
seqno: seqno,
targetSystem: targetSystem,
targetComponent: targetComponent,
status: status);
}