MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / setUseCache

Method setUseCache

KittyMemoryEx/KittyPtrValidator.hpp:79–91  ·  view source on GitHub ↗

* @brief Sets whether to use cached region information. * * @param use_cache True to use cached region information, false to clear the cache. */

Source from the content-addressed store, hash-verified

77 * @param use_cache True to use cached region information, false to clear the cache.
78 */
79 inline void setUseCache(bool use_cache)
80 {
81 use_cache_ = use_cache;
82 if (!use_cache_)
83 {
84 cachedRegions_.clear();
85 last_region_index_ = 0;
86 }
87 else
88 {
89 refreshRegionCache();
90 }
91 }
92
93 /**
94 * @brief Checks if a pointer is readable.

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected