Developer

API Reference

ICACHINGRESFILE_SetCacheInfo()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
See Also
None
Description
This function is used to configure the cache size limit. This is set by supplying a function that performs the measurement, and an integer limit that will be compared against the sum of the results of the measure function.
Parameters
  • po
    []:
    pointer to the ICachingResFile interface object
  • cache_size
    []:
    cache size limit as measured by the metric function
  • f
    []:
    pointer to metric calculation function
  • userData
    []:
    pointer to user data that is supplied to the metric function
Interface
ICACHINGRESFILE
Prototype
   void ICACHINGRESFILE_SetCacheInfo(ICachingResFile*, uint32 cache_size, CALCULATEMETRICSFN f, void* userData)
Return
   void
Side Effect
None
Comment
   typedef int (*CALCULATEMETRICSFN)(AEECachedObject*, void*);
The void* parameter in this function will be set to the pointer supplied in the SetCacheInfo() function call.
  • Follow