Use this function to write 16 bits in native format to a SDL_RWops as little-endian data.
Defined in SDL_rwops.h
size_t SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
SDL_RWops * | dst | the stream to which data will be written. |
Uint16 | value | the data to be written, in native format. |
(size_t) Returns 1 on successful write, 0 on error.
SDL byteswaps the data only if necessary, so the application always specifies native format, and the data written will be in little-endian format.
This function is available since SDL 2.0.0.