MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / getFD

Method getFD

system/lib/wasmfs/backends/node_backend.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 NodeState(std::string path) : path(path) {}
29
30 int getFD() {
31 assert(openCount > 0);
32 return fd;
33 }
34
35 bool isOpen() { return openCount > 0; }
36

Callers 4

getSizeMethod · 0.80
setSizeMethod · 0.80
readMethod · 0.80
writeMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected