returns -1 if no more characters are available
| 283 | |
| 284 | // returns -1 if no more characters are available |
| 285 | int MSG_ReadByte( msg_t *msg ) { |
| 286 | int c; |
| 287 | |
| 288 | if ( msg->readcount+1 > msg->cursize ) { |
| 289 | c = -1; |
| 290 | } else { |
| 291 | c = (unsigned char)MSG_ReadBits( msg, 8 ); |
| 292 | } |
| 293 | |
| 294 | return c; |
| 295 | } |
| 296 | |
| 297 | int MSG_ReadShort( msg_t *msg ) { |
| 298 | int c; |
no test coverage detected