unsafeMove function
Implementation
void unsafeMove(int dst, int src, int length) {
final d = Pointer<Uint8>.fromAddress(dst).asTypedList(length);
final s = Pointer<Uint8>.fromAddress(src).asTypedList(length);
if (dst <= src || dst >= src + length) {
d.setRange(0, length, s);
} else {
for (var i = length - 1; i >= 0; i--) {
d[i] = s[i];
}
}
}