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

Function write

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

Source from the content-addressed store, hash-verified

64}
65
66fn write() {
67 let f = preopen()
68 .open_at(
69 PathFlags::empty(),
70 "hi",
71 OpenFlags::CREATE,
72 DescriptorFlags::empty(),
73 )
74 .unwrap();
75 f.write(&[0; 5001], 0).unwrap();
76 unreachable!()
77}
78
79fn write_stream() {
80 preopen()

Callers 4

mainFunction · 0.70
buildMethod · 0.50
compile_componentMethod · 0.50
build_non_rust_testsMethod · 0.50

Calls 5

preopenFunction · 0.85
emptyFunction · 0.50
unwrapMethod · 0.45
open_atMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected