AirlinkAuth.parse constructor
AirlinkAuth.parse(
- ByteData data_
Implementation
factory AirlinkAuth.parse(ByteData data_) {
if (data_.lengthInBytes < AirlinkAuth.mavlinkEncodedLength) {
var len = AirlinkAuth.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var login = MavlinkMessage.asInt8List(data_, 0, 50);
var password = MavlinkMessage.asInt8List(data_, 50, 50);
return AirlinkAuth(login: login, password: password);
}