sdlWriteU32Be function
Use this function to write 32 bits in native format to an SDL_IOStream as big-endian data.
SDL byteswaps the data only if necessary, so the application always specifies native format, and the data written will be in big-endian format.
\param dst the stream to which data will be written. \param value the data to be written, in native format. \returns true on successful write or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_WriteU32BE(SDL_IOStream *dst, Uint32 value)
Implementation
bool sdlWriteU32Be(Pointer<SdlIoStream> dst, int value) {
final sdlWriteU32BeLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlIoStream> dst, Uint32 value),
int Function(Pointer<SdlIoStream> dst, int value)>('SDL_WriteU32BE');
return sdlWriteU32BeLookupFunction(dst, value) == 1;
}