Function SDL_FlushIO
pub unsafe extern "C" fn SDL_FlushIO(
context: *mut SDL_IOStream,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Flush any buffered data in the stream.
This function makes sure that any buffered data is written to the stream. Normally this isn’t necessary but if the stream is a pipe or socket it guarantees that any pending data is sent.
§Parameters
context
:SDL_IOStream
structure to flush.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Thread safety
This function is not thread safe.
§Availability
This function is available since SDL 3.2.0.