SDL_IOFromDynamicMem

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

Header File

Defined in <SDL3/SDL_iostream.h>

Syntax

SDL_IOStream * SDL_IOFromDynamicMem(void);

Return Value

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

Remarks

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

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryIOStream