Function SDL_IOFromDynamicMem

pub unsafe extern "C" fn SDL_IOFromDynamicMem() -> *mut SDL_IOStream
Available on crate feature dep_sdl3 only.
Expand description

Use this function to create an SDL_IOStream that is backed by dynamically allocated memory.

This supports the following properties to provide access to the memory and control over allocations:

§Return value

Returns a pointer to a new SDL_IOStream structure or NULL on failure; call SDL_GetError() for more information.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also