MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / bytes

Method bytes

include/dpp/cache.h:251–254  ·  view source on GitHub ↗

* @brief Get "real" size in RAM of the cached objects * * This does not include metadata used to maintain the unordered map itself. * * @return size_t size of cache in bytes */

Source from the content-addressed store, hash-verified

249 * @return size_t size of cache in bytes
250 */
251 size_t bytes() {
252 std::shared_lock l(cache_mutex);
253 return sizeof(*this) + (cache_map->bucket_count() * sizeof(size_t));
254 }
255
256};
257

Callers 2

process_proposalsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected