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

Method reset

lib/host/wasi/inode-macos.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114} // namespace
115
116void FdHolder::reset() noexcept {
117 if (likely(ok())) {
118 if (likely(!isSpecialFd(Fd))) {
119 close(Fd);
120 }
121 Fd = -1;
122 }
123}
124
125void DirHolder::reset() noexcept {
126 if (likely(Dir != nullptr)) {

Callers

nothing calls this directly

Calls 3

isSpecialFdFunction · 0.70
likelyFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected