MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / preopen

Function preopen

crates/test-programs/src/bin/p2_cli_hostcall_fuel.rs:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35fn preopen() -> Descriptor {
36 let mut dirs = wasip2::filesystem::preopens::get_directories();
37 assert_eq!(dirs.len(), 1);
38 dirs.pop().unwrap().0
39}
40
41fn read() {
42 let f = preopen()

Callers 9

readFunction · 0.85
writeFunction · 0.85
write_streamFunction · 0.85
write_stream_blockingFunction · 0.85
mkdirFunction · 0.85
write_zeroesFunction · 0.85
read_file_bigFunction · 0.85

Calls 2

unwrapMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected