MCPcopy Create free account
hub / github.com/Niko1221/Strata / sync

Method sync

engine/src/core/conversation_file.cpp:249–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 return false;
248 }
249 bool sync() {
250 if (FlushFileBuffers(h_)) return true;
251 { const DWORD c_ = GetLastError(); kind_ = win_kind(c_); error_ = last_error(c_); }
252 return false;
253 }
254 bool close() {
255 if (h_ == INVALID_HANDLE_VALUE) return true;
256 const bool ok = CloseHandle(h_) != 0;

Callers 1

finishMethod · 0.45

Calls 3

win_kindFunction · 0.85
last_errorFunction · 0.85
errno_kindFunction · 0.85

Tested by

no test coverage detected