SRC/EXAMPLE/l_common.cpp
/** \brief reads unsigned 8-bit value.
  *
  * uses current position from src. throws TR_ReadError when not successful.
  */
\brief reads unsigned 8-bit value.
uses current position from src. throws TR_ReadError when not successful.
\ brief reads unsigned 8 - bit value . uses current position from src . throws TR_ReadError when not successful .
uint8_t TR_Level::read_bitu8(SDL_RWops * const src)
{
    uint8_t data;
    if (src == NULL)
        Sys_extError("read_bitu8: src == NULL");
    if (SDL_RWread(src, &data, 1, 1) < 1)
        Sys_extError("read_bitu8");
    return data;
}
uint8_t TR_Level :: read_bitu8 ( SDL_RWops * const src ) { uint8_t data ; if ( src == NULL ) Sys_extError ( " " ) ; if ( SDL_RWread ( src , & data , 1 , 1 ) < 1 ) Sys_extError ( " " ) ; return data ; }
\brief reads unsigned 8-bit value.
\ brief reads unsigned 8 - bit value .