ParamRequestList.parse constructor
ParamRequestList.parse(
- ByteData data_
Implementation
factory ParamRequestList.parse(ByteData data_) {
if (data_.lengthInBytes < ParamRequestList.mavlinkEncodedLength) {
var len = ParamRequestList.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var targetSystem = data_.getUint8(0);
var targetComponent = data_.getUint8(1);
return ParamRequestList(
targetSystem: targetSystem, targetComponent: targetComponent);
}