SDL_GetIOSize(3)

πŸ’– NAME πŸ’–

okay so bestie, this is the SDL3 FUNCTIONS manual page for SDL_GetIOSize(3) β€” and the whole point is: use SDL_GetIOSize to get the size of the data stream in an SDL_IOStream. literally that's the function's whole job. no cap. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_iostream.h>

Sint64 SDL_GetIOSize(SDL_IOStream *context);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • context β€” the SDL_IOStream to get the size of the data stream from. give it the stream, get the size. iconic.

🌸 RETURN VALUE 🌸

On success, you get the size of the data stream in the SDL_IOStream β€” yes, as a Sint64, slay. On failure, you get a negative error code. if that happens, call SDL_GetError() for more information. fr fr, that's your bestie for the error deets. πŸ’…

πŸ’€ THREAD SAFETY πŸ’€

bestie, do not use the same SDL_IOStream from two threads at once. that's the whole warning. no multitasking that stream, periodt. 🫢

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on SDL 3.2.0 or later, you're good. πŸ’–


okay bye bestie, mwah πŸ’‹ β€” this page was served by Simple Directmedia Layer, version SDL 3.4.18, and it's literally the SDL_GetIOSize(3) page. stay hydrated, keep your streams safe, and don't share one across threads βœ¨πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from