|
PebbleOS
|
Data Structures | |
| struct | KeyedCircularCache |
| Keyed circular cache state. More... | |
Typedefs | |
| typedef uint32_t | KeyedCircularCacheKey |
| Key of a keyed circular cache. | |
Functions | |
| void | keyed_circular_cache_init (KeyedCircularCache *c, KeyedCircularCacheKey *key_buffer, void *data_buffer, size_t item_size, size_t total_items) |
| Initialize a keyed circular cache. | |
| void * | keyed_circular_cache_get (KeyedCircularCache *c, KeyedCircularCacheKey key) |
| Find an item by key. | |
| void | keyed_circular_cache_push (KeyedCircularCache *c, KeyedCircularCacheKey key, const void *item) |
| Copy an item into the cache, evicting the oldest one. | |