MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / update_lru

Method update_lru

libcppcryptfs/filename/dirivcache.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void DirIvCache::update_lru(DirIvCacheNode *node)
139{
140 // if node isn't already at front of list, remove
141 // it from wherever it was and put it at the front
142
143 if (node->m_list_it != m_lru_list.begin()) {
144 m_lru_list.erase(node->m_list_it);
145 m_lru_list.push_front(node);
146 node->m_list_it = m_lru_list.begin();
147 }
148}
149
150bool DirIvCache::lookup(LPCWSTR path, unsigned char *dir_iv)
151{

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected