table of contents
other versions
SDL_WriteLE16(3) | SDL3 FUNCTIONS | SDL_WriteLE16(3) |
NAME¶
SDL_WriteLE16 - Use this function to write 16 bits in native
format to a SDL_RWops
as little-endian data.
SYNOPSIS¶
#include "SDL3/SDL.h"
size_t SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
DESCRIPTION¶
SDL byteswaps the data only if necessary, so the application always specifies native format, and the data written will be in little-endian format.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns 1 on successful write, 0 on error.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_WriteBE16(3)
SDL 3.0.0 | SDL |