MCPcopy Create free account
hub / github.com/ElementsProject/elements / Close

Method Close

src/leveldb/util/env_windows.cc:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 bool Close() {
90 if (!is_valid()) {
91 return true;
92 }
93 HANDLE h = handle_;
94 handle_ = INVALID_HANDLE_VALUE;
95 return ::CloseHandle(h);
96 }
97
98 bool is_valid() const {
99 return handle_ != INVALID_HANDLE_VALUE && handle_ != nullptr;

Callers 3

DoWriteStringToFileFunction · 0.45
TESTFunction · 0.45
CloseMethod · 0.45

Calls 1

is_validFunction · 0.85

Tested by 1

TESTFunction · 0.36