memmove function

Pointer<Void> memmove(
  1. Pointer<Void> __dest,
  2. Pointer<Void> __src,
  3. int __n
)

Copy N bytes of SRC to DEST, guaranteeing correct behavior for overlapping strings.

Implementation

ffi.Pointer<ffi.Void> memmove(
  ffi.Pointer<ffi.Void> __dest,
  ffi.Pointer<ffi.Void> __src,
  int __n,
) {
  _memmove ??= Libc().dylib.lookupFunction<
      ffi.Pointer<ffi.Void> Function(
          ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Uint64),
      _dart_memmove>('memmove');
  return _memmove!(
    __dest,
    __src,
    __n,
  );
}