MCPcopy Create free account
hub / github.com/DentonW/DevIL / iUnCache

Function iUnCache

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

Source from the content-addressed store, hash-verified

577
578
579void iUnCache()
580{
581 //changed 2003-09-01:
582 //make iUnCache smart enough to return if
583 //no cache is used
584 if (!UseCache)
585 return;
586
587 if (iread == iReadLump)
588 return;
589
590 CacheSize = 0;
591 CachePos = 0;
592 if (Cache) {
593 ifree(Cache);
594 Cache = NULL;
595 }
596 UseCache = IL_FALSE;
597
598 iseek(CacheStartPos + CacheBytesRead, IL_SEEK_SET);
599
600 return;
601}
602
603
604ILint ILAPIENTRY iSeekRFile(ILint Offset, ILuint Mode)

Callers 8

iReadNonRleSgiFunction · 0.85
iUncompressDcxFunction · 0.85
ReadCompressedChannelFunction · 0.85
iUncompressTgaDataFunction · 0.85
iUncompressPcxFunction · 0.85
iUncompressSmallFunction · 0.85
ilReadUncompBmpFunction · 0.85
iLoadHdrInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected