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

Method stdout_path

crates/bench-api/src/lib.rs:217–223  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

215 }
216
217 fn stdout_path(&self) -> Result<PathBuf> {
218 let stdout_path =
219 unsafe { std::slice::from_raw_parts(self.stdout_path_ptr, self.stdout_path_len) };
220 let stdout_path =
221 std::str::from_utf8(stdout_path).context("given stdout path is not valid UTF-8")?;
222 Ok(stdout_path.into())
223 }
224
225 fn stderr_path(&self) -> Result<PathBuf> {
226 let stderr_path =

Callers 1

wasm_bench_createFunction · 0.80

Calls 2

OkFunction · 0.85
contextMethod · 0.45

Tested by

no test coverage detected