| 445 | |
| 446 | |
| 447 | ILint ILAPIENTRY iGetcLump(void) |
| 448 | { |
| 449 | // If ReadLumpSize is 0, don't even check to see if we've gone past the bounds. |
| 450 | if (ReadLumpSize > 0) { |
| 451 | if (ReadLumpPos + 1 > ReadLumpSize) { |
| 452 | ReadLumpPos--; |
| 453 | ilSetError(IL_FILE_READ_ERROR); |
| 454 | return IL_EOF; |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | return *((ILubyte*)ReadLump + ReadLumpPos++); |
| 459 | } |
| 460 | |
| 461 | |
| 462 | ILuint ILAPIENTRY iReadFile(void *Buffer, ILuint Size, ILuint Number) |
nothing calls this directly
no test coverage detected