API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICACHINGRESFILE_SETCACHEINFO()

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.
Params
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
Comments
typedef int (*CALCULATEMETRICSFN)(AEECachedObject*, void*); The void* parameter in this function will be set to the pointer supplied in the SetCacheInfo() function call.