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

Function ILAPIENTRY iDefaultEof

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

Source from the content-addressed store, hash-verified

158
159
160ILboolean ILAPIENTRY iDefaultEof(ILHANDLE Handle)
161{
162 ILuint OrigPos, FileSize;
163
164 // Find out the filesize for checking for the end of file
165 OrigPos = itell();
166 iseek(0, IL_SEEK_END);
167 FileSize = itell();
168 iseek(OrigPos, IL_SEEK_SET);
169
170 if (itell() >= FileSize)
171 return IL_TRUE;
172 return IL_FALSE;
173}
174
175
176ILint ILAPIENTRY iDefaultGetc(ILHANDLE Handle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected