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

Method filesize

lib/host/wasi/inode-linux.cpp:1423–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1421}
1422
1423WasiExpect<__wasi_filesize_t> INode::filesize() const noexcept {
1424 if (!Stat) {
1425 EXPECTED_TRY(updateStat());
1426 }
1427 return Stat->st_size;
1428}
1429
1430bool INode::canBrowse() const noexcept {
1431 return ::faccessat(Fd, ".", X_OK, 0) == 0;

Callers

nothing calls this directly

Calls 1

EXPECTED_TRYFunction · 0.50

Tested by

no test coverage detected