SDL_GetAsyncIOSize(3)

✨ SDL_GetAsyncIOSize ✨

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_GetAsyncIOSize πŸ’…


🌸 NAME 🌸

SDL_GetAsyncIOSize β€” the lil function you call to get the size of the data stream in an SDL_AsyncIO. that's it, that's the job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_asyncio.h>

Sint64 SDL_GetAsyncIOSize(SDL_AsyncIO *asyncio);

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜•: this call is _not_ asynchronous. like, at all. it just assumes that getting this info is a non-blocking operation in most reasonable cases. lowkey iconic of it tbh 🫢


πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • asyncio β€” the SDL_AsyncIO you want the size of the data stream from. hand it over, bestie, it'll tell you how big it is πŸ“

✨ RETURN VALUE ✨

  • on success it returns the size of the data stream in the SDL_IOStream πŸ’–
  • on failure it returns a negative error code 😭
need the deets on what went wrong? call SDL_GetError() for more information. she always has the gossip πŸ”

πŸ’€ THREAD SAFETY πŸ’€

it is safe to call this function from any thread. no cap, go wild, every thread can have a turn 🌈


πŸ‘‘ AVAILABILITY πŸ‘‘

this function is available since SDL 3.2.0 ⭐


and that's the whole page, periodt πŸ’… go forth and get those async IO sizes, you absolute legend 🧚

~ brought to you by Simple Directmedia Layer, SDL 3.4.18, page SDL_GetAsyncIOSize(3) β€” mwah, stan this manual πŸ«ΆπŸ’–

πŸ“¦ where this page comes from