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