sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Endian

Synopsis

Documentation

sDL_LIL_ENDIAN :: CInt Source #

A value to represent littleendian byteorder.

This is used with the preprocessor macro SDL_BYTEORDER, to determine a platform's byte ordering:

    #if SDL_BYTEORDER == SDL_LIL_ENDIAN
    SDL_Log("This system is littleendian.");
    #endif
    
See also
sDL_BYTEORDER, sDL_BIG_ENDIAN
C declaration
macro SDL_LIL_ENDIAN, defined at SDL3/SDL_endian.h 86:9

Since: 3.2.0

sDL_BIG_ENDIAN :: CInt Source #

A value to represent bigendian byteorder.

This is used with the preprocessor macro SDL_BYTEORDER, to determine a platform's byte ordering:

    #if SDL_BYTEORDER == SDL_BIG_ENDIAN
    SDL_Log("This system is bigendian.");
    #endif
    
See also
sDL_BYTEORDER, sDL_LIL_ENDIAN
C declaration
macro SDL_BIG_ENDIAN, defined at SDL3/SDL_endian.h 105:9

Since: 3.2.0

sDL_Swap16LE :: a0 -> a0 Source #

C declaration
macro SDL_Swap16LE, defined at SDL3/SDL_endian.h 620:9

sDL_Swap32LE :: a0 -> a0 Source #

C declaration
macro SDL_Swap32LE, defined at SDL3/SDL_endian.h 621:9

sDL_Swap64LE :: a0 -> a0 Source #

C declaration
macro SDL_Swap64LE, defined at SDL3/SDL_endian.h 622:9

sDL_SwapFloatLE :: a0 -> a0 Source #

C declaration
macro SDL_SwapFloatLE, defined at SDL3/SDL_endian.h 623:9