sdlMemcpy function
Copy non-overlapping memory.
The memory regions must not overlap. If they do, use SDL_memmove() instead.
\param dst The destination memory region. Must not be NULL, and must not
overlap with src
.
\param src The source memory region. Must not be NULL, and must not overlap
with dst
.
\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_memmove
extern SDL_DECLSPEC void * SDLCALL SDL_memcpy(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
Implementation
Pointer<NativeType> sdlMemcpy(
Pointer<NativeType> arg0, Pointer<NativeType> arg1, int len) {
final sdlMemcpyLookupFunction = 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_memcpy');
return sdlMemcpyLookupFunction(arg0, arg1, len);
}