Lines Matching refs:cache

567 	Fill in the cache of a given zip file.  This should only be called once during zip_openZipFile!
599 if (!zipFile->cache)
608 zipFile->cache->startCentralDir = startCentralDir =
775 comment. In either case, cache the central header instead of the local header
779 zipCache_addElement (zipFile->cache, (char *) filename,
786 zipCache_addElement (zipFile->cache, (char *) filename,
838 the filename read for the entry. If (cachePointer != -1) the filename of the entry will be looked up in the cache (assuming
839 there is one) to help detect use of an invalid cache. If enumerationPointer is non-NULL, sequential access is assumed and
875 if (zipFile->cache && (zipFile->pointer >= zipFile->cache->startCentralDir))
922 if ((enumerationPointer || (!zipFile->cache))
961 supplied a filename of length <16 but that only happens when we have a cache (so we'll know the header size)
992 if (zipFile->cache)
1161 if (zipFile->cache && zipFile->cachePool)
1163 zipCachePool_release (zipFile->cachePool, zipFile->cache);
1164 zipFile->cache = NULL;
1190 * Called to set up a cache when a zip file is opened with a cachePool but without a cache, or when the
1191 * current cache is found to be invalid in some way.
1194 * @param[in] zipFile the zip file for which we want to establish a cache
1196 * The current cache is marked as invalid such that new instances of zip files
1197 * won't try to use it and an attempt is made to establish a new cache.
1216 if (zipFile->cache)
1220 /* Whack cache timestamp to keep other people from starting to use it (we will create a new one for them
1221 to start to use instead). Once all the current users of the cache have stopped using it, it will go away */
1222 zipFile->cache->zipTimeStamp = -2;
1223 zipCachePool_release (zipFile->cachePool, zipFile->cache);
1225 zipFile->cache = NULL;
1232 /* Check the cachePool for a suitable cache. */
1251 zipFile->cache =
1255 if (!zipFile->cache)
1257 /* Build a new cache. Because caller asked for a cache, fail if we can't provide one */
1258 zipFile->cache =
1260 if (!zipFile->cache)
1263 zipFile->cache->zipFileSize = fileSize;
1264 zipFile->cache->zipTimeStamp = timeStamp;
1269 zipCache_kill (zipFile->cache);
1270 zipFile->cache = NULL;
1273 if (!zipCachePool_addCache (zipFile->cachePool, zipFile->cache))
1275 zipCache_kill (zipFile->cache);
1276 zipFile->cache = NULL;
1423 if (zipFile->cache)
1425 /* Validity check: look up filename in the cache... */
1427 (IDATA) zipCache_findElement (zipFile->cache,
1432 if (result >= zipFile->cache->startCentralDir)
1443 /* (silently start operating without a cache if we couldn't make a new one) */
1480 * Note findDirectory is only supported (for the JCL) when there is a cache
1507 if (zipFile->cache)
1509 /* Look up filename in the cache. */
1511 (IDATA) zipCache_findElement (zipFile->cache, filename,
1515 /* Note: we assume the cache is still valid here */
1551 result = zip_establishCache (portLib, zipFile); /* invalidate existing cache */
1565 /* Uh oh -- random access without a cache (SLOW!) */
1936 without a cache, so too bad for now */
2012 * If the cache pool is non-NULL, the cachePool will be used to find a suitable cache, and if none can be found it will create one and add it to cachePool.
2013 * Zip support is responsible for managing the lifetime of the cache.
2015 * @note If cachePool is NULL, zipFile will be opened without a cache.
2020 * @param[in] cachePool the cache pool
2050 zipFile->cache = NULL;
2172 if (zipFile->cache)
2173 *nextEntryPointer = zipFile->cache->startCentralDir;