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

Method Close

libcppcryptfs/file/openfiles.h:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 bool Close(HANDLE h)
95 {
96 auto it = m_handles.find(h);
97 if (it == m_handles.end()) {
98 return false;
99 }
100
101 it->second--;
102
103 if (it->second == 0)
104 m_handles.erase(h);
105
106 return true;
107 }
108
109 bool Empty()
110 {

Callers 1

CloseFileMethod · 0.80

Calls 2

findMethod · 0.80
eraseMethod · 0.80

Tested by

no test coverage detected