Scroll to navigation

SDL_WriteBE32(3) SDL3 FUNCTIONS SDL_WriteBE32(3)

NAME

SDL_WriteBE32 - Use this function to write 32 bits in native format to a SDL_RWops
as big-endian data.

SYNOPSIS

#include "SDL3/SDL.h"
size_t SDL_WriteBE32(SDL_RWops * dst, Uint32 value);

DESCRIPTION

SDL byteswaps the data only if necessary, so the application always specifies native format, and the data written will be in big-endian format.

FUNCTION PARAMETERS

the stream to which data will be written
the data to be written, in native format

RETURN VALUE

Returns 1 on successful write, 0 on error.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_WriteLE32(3)

SDL 3.0.0 SDL