SDL_WriteS64BE(3)
β¨ hey bestie, welcome to SDL_WriteS64BE(3) β¨
okay so this is from the SDL3 FUNCTIONS corner of the manual, and it's all about SDL_WriteS64BE. she writes 64 bits in native format into an SDL_IOStream, but the data lands as big-endian. iconic behavior, no cap. π
πΈ NAME πΈ
SDL_WriteS64BE β use this function to write 64 bits in native format to an SDL_IOStream as big-endian data. π¦
π SYNOPSIS π
#include <SDL3/SDL_iostream.h>
bool SDL_WriteS64BE(SDL_IOStream *dst, Sint64 value);
π DESCRIPTION π
so like, SDL byteswaps the data only if necessary, which means your application always specifies native format, and the data that actually gets written will be in big-endian format. periodt. β¨
β FUNCTION PARAMETERS β
dstβ the stream to which data will be written. the destination bestie π«Άvalueβ the data to be written, in native format. the 64-bit payload, native style π
π₯ RETURN VALUE π₯
returns true on successful write or false on failure; call SDL_GetError() for more information. so if it's giving failure, go ask SDL_GetError() what's up. π
π THREAD SAFETY π
do not use the same SDL_IOStream from two threads at once. that's the rule, bestie β no double-dipping the stream. π
π AVAILABILITY π
this function is available since SDL 3.2.0. she's been around, and she's thriving. π
okay that's the whole page, bestie π brought to you by Simple Directmedia Layer, version SDL 3.4.18, on the SDL_WriteS64BE(3) manual. no date in this footer, just pure iconic energy. slay π β¨
π¦ 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