MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iGetcLump

Function ILAPIENTRY iGetcLump

DevIL/src-IL/src/il_files.cpp:447–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447ILint 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
462ILuint ILAPIENTRY iReadFile(void *Buffer, ILuint Size, ILuint Number)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected