SDL_Swap32BE - Man Page

Swap a 32-bit value from bigendian to native byte order.

Header File

Defined in SDL3/SDL_endian.h

Synopsis

#include "SDL3/SDL.h"

#define SDL_Swap32BE(x) SwapOnlyIfNecessary(x)

Description

If this is running on a bigendian system, x is returned unchanged.

This macro never references x more than once, avoiding side effects.

Return Value

Returns x in native byte order.

Thread Safety

It is safe to call this macro from any thread.

Availability

This macro is available since SDL 3.2.0.

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS