SDL_memmove(3)
π SDL_memmove(3) π
okay bestie, we're in the SDL3 FUNCTIONS section of the manual and this one is a genuine little icon, no cap β¨
πΈ NAME πΈ
SDL_memmove β copy memory ranges that might overlap π«Ά
π SYNOPSIS π
#include <SDL3/SDL_stdinc.h>
void * SDL_memmove(void *dst, const void *src, size_t len);
π¦ DESCRIPTION π¦
so like, the whole vibe here is that it is totally okay for the memory regions to overlap. that's the point. that's the assignment. she handles it π
but listen β if you are confident that the regions never overlap, then using SDL_memcpy() may improve performance. so it's giving "know your data, choose your fighter" β¨
π FUNCTION PARAMETERS π
dstβ the destination memory region. Must not beNULL. like fr fr, do not do that to her πsrcβ the source memory region. Must not beNULL. same energy, bestie πlenβ the length in bytes of bothdstandsrc. one number, two regions, that's the deal π«
π RETURN VALUE π
returns dst. that's it. she gives you back your destination pointer, main character behavior π
π§ THREAD SAFETY π§
it is safe to call this function from any thread. go off, multi-threaded queen π₯
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on something older, that's a no from her π
π SEE ALSO π
quick reminder bestie: overlapping regions =SDL_memmove. non-overlapping regions = maybeSDL_memcpy()for the speed. pick accordingly, iykyk π¦
k bye, this page came to you from the fine folks at Simple Directmedia Layer, running SDL 3.4.18, and it's the SDL_memmove(3) page itself. mwah πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms