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