SRC/EXAMPLE/l_common.cpp
uint16_t TR_Level::read_bitu16(SDL_RWops * const src)
{
    uint16_t data;

    if (src == NULL)
        Sys_extError("read_bitu16: src == NULL");

    if (SDL_RWread(src, &data, 2, 1) < 1)
        Sys_extError("read_bitu16");

    data = SDL_SwapLE16(data);

    return data;
}
/** \brief reads unsigned 16-bit value.
  *
  * uses current position from src. does endian correction. throws TR_ReadError when not successful.
  */
\brief reads unsigned 16-bit value.
uses current position from src. does endian correction. throws TR_ReadError when not successful.
\ brief reads unsigned 16 - bit value . uses current position from src . does endian correction . throws TR_ReadError when not successful .
uint16_t TR_Level::read_bitu16(SDL_RWops * const src)
{
    uint16_t data;
    if (src == NULL)
        Sys_extError("read_bitu16: src == NULL");
    if (SDL_RWread(src, &data, 2, 1) < 1)
        Sys_extError("read_bitu16");
    data = SDL_SwapLE16(data);
    return data;
}
uint16_t TR_Level :: read_bitu16 ( SDL_RWops * const src ) { uint16_t data ; if ( src == NULL ) Sys_extError ( " " ) ; if ( SDL_RWread ( src , & data , 2 , 1 ) < 1 ) Sys_extError ( " " ) ; data = SDL_SwapLE16 ( data ) ; return data ; }
\brief reads unsigned 16-bit value.
\ brief reads unsigned 16 - bit value .