sdlIoFromDynamicMem function iostream
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:
- SDL_PROP_IOSTREAM_DYNAMIC_MEMORY_POINTER: a pointer to the internal memory of the stream. This can be set to NULL to transfer ownership of the memory to the application, which should free the memory with SDL_free(). If this is done, the next operation on the stream must be SDL_CloseIO().
- SDL_PROP_IOSTREAM_DYNAMIC_CHUNKSIZE_NUMBER: memory will be allocated in multiples of this size, defaulting to 1024.
\returns a pointer to a new SDL_IOStream structure or NULL on failure; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_CloseIO \sa SDL_ReadIO \sa SDL_SeekIO \sa SDL_TellIO \sa SDL_WriteIO
extern SDL_DECLSPEC SDL_IOStream * SDLCALL SDL_IOFromDynamicMem(void)
Implementation
Pointer<SdlIoStream> sdlIoFromDynamicMem() {
  final sdlIoFromDynamicMemLookupFunction = _libSdl
      .lookupFunction<
        Pointer<SdlIoStream> Function(),
        Pointer<SdlIoStream> Function()
      >('SDL_IOFromDynamicMem');
  return sdlIoFromDynamicMemLookupFunction();
}