MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / alloc

Method alloc

host/sysenv/sysenv.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23i32_t FdTable::alloc(int os_fd) {
24 i32_t wfd = next_fd_++;
25 table_[wfd] = FdEntry{os_fd, false, nullptr};
26 return wfd;
27}
28
29i32_t FdTable::alloc_dir(std::shared_ptr<DirIter> dir) {
30 i32_t wfd = next_fd_++;

Callers 1

fs_openFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected