SDL_TellIO(3)
π SDL_TellIO(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_TellIO β¨ she's the one who tells you where you're at in a stream. literally your emotional support offset reader π«Ά
πΈ NAME πΈ
SDL_TellIO β figure out the current read/write offset inside an SDL_IOStream data stream. yes, like a little "you are here" map but for bytes πΊοΈβ¨
π SYNOPSIS π
#include <SDL3/SDL_iostream.h>
Sint64 SDL_TellIO(SDL_IOStream *context);
π¦ DESCRIPTION π¦
so here's the tea β SDL_TellIO is actually a wrapper function β she's not out here doing the work herself, she's calling the SDL_IOStream's seek method with an offset of 0 bytes from SDL_IO_SEEK_CUR, purely to make your application development life easier. no cap, that's the whole bit π
like. she's the friend who forwards your text to the right group chat. iconic behaviour honestly π
π FUNCTION PARAMETERS π
contextβ anSDL_IOStreamdata stream object, aka the lil stream you wanna get the current offset from. bestie, this is the one you're asking "where r u" π
β RETURN VALUE β
Returns the current offset in the stream, or -1 if that information cannot be determined π (yes, -1 is the "idk her" of return values).
π₯ THREAD SAFETY π₯
Do NOT use the same SDL_IOStream from two threads at once. π«π§΅ she is not built for that kind of chaos, and honestly? same.
π AVAILABILITY π
this function has been available since SDL 3.2.0 β¨ so if you're on anything older, she hasn't been born yet, sorry bestie π
π SEE ALSO π
SDL_SeekIO(3)β her sister, the one who actually does the seeking π go say hi
Simple Directmedia Layer π SDL 3.4.18 β that's the source and version, babes, straight from the footer, love u, drink water, go check your stream offsets π π¦β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms