SRC/EXAMPLE/l_common.cpp
/** \brief reads signed 32-bit value.
  *
  * uses current position from src. does endian correction. throws TR_ReadError when not successful.
  */
\brief reads signed 32-bit value.
uses current position from src. does endian correction. throws TR_ReadError when not successful.
\ brief reads signed 32 - bit value . uses current position from src . does endian correction . throws TR_ReadError when not successful .
int32_t TR_Level::read_bit32(SDL_RWops * const src)
{
    int32_t data;
    if (src == NULL)
        Sys_extError("read_bit32: src == NULL");
    if (SDL_RWread(src, &data, 4, 1) < 1)
        Sys_extError("read_bit32");
    data = SDL_SwapLE32(data);
    return data;
}
int32_t TR_Level :: read_bit32 ( SDL_RWops * const src ) { int32_t data ; if ( src == NULL ) Sys_extError ( " " ) ; if ( SDL_RWread ( src , & data , 4 , 1 ) < 1 ) Sys_extError ( " " ) ; data = SDL_SwapLE32 ( data ) ; return data ; }
\brief reads signed 32-bit value.
\ brief reads signed 32 - bit value .