table of contents
other versions
SDL_RWtell(3) | SDL3 FUNCTIONS | SDL_RWtell(3) |
NAME¶
SDL_RWtell - Determine the current read/write offset in an
SDL_RWops
data stream.
SYNOPSIS¶
#include "SDL3/SDL.h"
Sint64 SDL_RWtell(SDL_RWops *context);
DESCRIPTION¶
SDL_RWtell
is actually a wrapper function that calls the
SDL_RWops seek method, with an offset of 0 bytes from
SDL_RW_SEEK_CUR , to simplify application development.
FUNCTION PARAMETERS¶
- context
- an SDL_RWops
data stream object from which to get the current offset
RETURN VALUE¶
Returns the current offset in the stream, or -1 if the information can not be determined.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_RWclose(3), SDL_RWFromConstMem(3), SDL_RWFromFile(3), SDL_RWFromMem(3), SDL_RWread(3), SDL_RWseek(3), SDL_RWwrite(3)
SDL 3.0.0 | SDL |