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

Method stderr_path

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

Source from the content-addressed store, hash-verified

223 }
224
225 fn stderr_path(&self) -> Result<PathBuf> {
226 let stderr_path =
227 unsafe { std::slice::from_raw_parts(self.stderr_path_ptr, self.stderr_path_len) };
228 let stderr_path =
229 std::str::from_utf8(stderr_path).context("given stderr path is not valid UTF-8")?;
230 Ok(stderr_path.into())
231 }
232
233 fn stdin_path(&self) -> Result<Option<PathBuf>> {
234 if self.stdin_path_ptr.is_null() {

Callers 1

wasm_bench_createFunction · 0.80

Calls 2

OkFunction · 0.85
contextMethod · 0.45

Tested by

no test coverage detected