AirlinkEyeGsHolePushResponse.parse constructor
AirlinkEyeGsHolePushResponse.parse(
- ByteData data_
Implementation
factory AirlinkEyeGsHolePushResponse.parse(ByteData data_) {
if (data_.lengthInBytes <
AirlinkEyeGsHolePushResponse.mavlinkEncodedLength) {
var len = AirlinkEyeGsHolePushResponse.mavlinkEncodedLength -
data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var ipPort = data_.getUint32(0, Endian.little);
var respType = data_.getUint8(4);
var ipVersion = data_.getUint8(5);
var ipAddress4 = MavlinkMessage.asUint8List(data_, 6, 4);
var ipAddress6 = MavlinkMessage.asUint8List(data_, 10, 16);
return AirlinkEyeGsHolePushResponse(
ipPort: ipPort,
respType: respType,
ipVersion: ipVersion,
ipAddress4: ipAddress4,
ipAddress6: ipAddress6);
}