MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clearLookupCache

Method clearLookupCache

app/src/DataModel/DataTable.cpp:163–169  ·  view source on GitHub ↗

* @brief Invalidates the (table_ptr, reg_ptr) cache before any Lua state populating it closes. */

Source from the content-addressed store, hash-verified

161 * @brief Invalidates the (table_ptr, reg_ptr) cache before any Lua state populating it closes.
162 */
163void DataModel::DataTableStore::clearLookupCache() const
164{
165 for (auto& entry : m_internedKeyCache)
166 entry = InternedKeyCacheEntry{};
167
168 m_internedKeyCacheNext = 0;
169}
170
171/**
172 * @brief Hot-path lookup keyed by Lua's interned string pointers.

Callers 2

destroyStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected