MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / sync

Method sync

Libraries/File/File.cpp:287–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287SC::Result SC::FileDescriptor::sync()
288{
289 SC_TRY_MSG(isValid(), "FileDescriptor::sync - Invalid handle");
290 SC_TRY_MSG(::FlushFileBuffers(handle) != FALSE, "FlushFileBuffers failed");
291 return Result(true);
292}
293
294SC::Result SC::FileDescriptor::syncData() { return sync(); }
295

Callers 2

Calls 2

isValidFunction · 0.50
ResultClass · 0.50

Tested by 2