libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.98k stars 1.84k forks source link

There is no `SDL_ReadS8` #10008

Closed madebr closed 5 months ago

madebr commented 5 months ago

There exists SDL_ReadU8, but no SDL_ReadS8.

https://github.com/libsdl-org/SDL/blob/96bb06d9c703061db8e7b156515dfa37af6720d7/include/SDL3/SDL_iostream.h#L626

Would a SDL_ReadS8 make sense?

Or is one expected to use SDL_ReadIO to read a single character/signed 8-byte integer?

slouken commented 5 months ago

Sure, it makes sense to add that for completeness.