Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::CodeSizeCache Class Reference

Simple thread-safe cache to store a mapping from code hash to code size. If the cache is full, a random element is removed. More...

#include <CodeSizeCache.h>

Public Member Functions

void store (h256 const &_hash, size_t size)
 
bool contains (h256 const &_hash) const
 
size_t get (h256 const &_hash) const
 

Static Public Member Functions

static CodeSizeCacheinstance ()
 

Detailed Description

Simple thread-safe cache to store a mapping from code hash to code size. If the cache is full, a random element is removed.

Definition at line 36 of file CodeSizeCache.h.

Member Function Documentation

◆ contains()

bool dev::eth::CodeSizeCache::contains ( h256 const &  _hash) const
inline

Definition at line 46 of file CodeSizeCache.h.

◆ get()

size_t dev::eth::CodeSizeCache::get ( h256 const &  _hash) const
inline

Definition at line 51 of file CodeSizeCache.h.

◆ instance()

static CodeSizeCache& dev::eth::CodeSizeCache::instance ( )
inlinestatic

Definition at line 57 of file CodeSizeCache.h.

◆ store()

void dev::eth::CodeSizeCache::store ( h256 const &  _hash,
size_t  size 
)
inline

Definition at line 39 of file CodeSizeCache.h.


The documentation for this class was generated from the following file: