sdlMemmove function
Copy memory ranges that might overlap.
It is okay for the memory regions to overlap. If you are confident that the regions never overlap, using SDL_memcpy() may improve performance.
\param dst The destination memory region. Must not be NULL.
\param src The source memory region. Must not be NULL.
\param len The length in bytes of both dst
and src
.
\returns dst
.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_memcpy
extern SDL_DECLSPEC void * SDLCALL SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
Implementation
Pointer<NativeType> sdlMemmove(
Pointer<NativeType> arg0, Pointer<NativeType> arg1, int len) {
final sdlMemmoveLookupFunction = libSdl3.lookupFunction<
Pointer<NativeType> Function(
Pointer<NativeType> arg0, Pointer<NativeType> arg1, Uint32 len),
Pointer<NativeType> Function(Pointer<NativeType> arg0,
Pointer<NativeType> arg1, int len)>('SDL_memmove');
return sdlMemmoveLookupFunction(arg0, arg1, len);
}