MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / fdDatasync

Method fdDatasync

lib/host/wasi/inode-win.cpp:810–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810WasiExpect<void> INode::fdDatasync() const noexcept {
811 if (unlikely(!FlushFileBuffers(Handle))) {
812 return WasiUnexpect(detail::fromLastError(GetLastError()));
813 }
814 return {};
815}
816
817WasiExpect<void> INode::fdFdstatGet(__wasi_fdstat_t &FdStat) const noexcept {
818 if (auto Res = filetype(); unlikely(!Res)) {

Callers 1

bodyMethod · 0.45

Calls 3

unlikelyFunction · 0.85
WasiUnexpectFunction · 0.85
fromLastErrorFunction · 0.85

Tested by

no test coverage detected