Function sdl2_sys::SDL_ReadLE16

source ·
pub unsafe extern "C" fn SDL_ReadLE16(src: *mut SDL_RWops) -> Uint16
Expand description

Use this function to read 16 bits of little-endian data from an SDL_RWops and return in native format.

SDL byteswaps the data only if necessary, so the data returned will be in the native byte order.

\param src the stream from which to read data \returns 16 bits of data in the native byte order of the platform.

\since This function is available since SDL 2.0.0.

\sa SDL_ReadBE16