Function SDL_memcpy

pub unsafe fn SDL_memcpy(
    dst: *mut c_void,
    src: *const c_void,
    len: usize,
) -> *mut c_void
Available on crate feature dep_sdl3 only.
Expand description

Copy non-overlapping memory.

The memory regions must not overlap. If they do, use SDL_memmove() instead.

§Parameters

  • dst: The destination memory region. Must not be NULL, and must not overlap with src.
  • src: The source memory region. Must not be NULL, and must not overlap with dst.
  • len: The length in bytes of both dst and src.

§Return value

Returns dst.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also