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

Function encoded

pulley/tests/all/interp.rs:10–17  ·  view source on GitHub ↗
(ops: &[Op])

Source from the content-addressed store, hash-verified

8use std::{cell::UnsafeCell, fmt::Debug, ptr::NonNull};
9
10fn encoded(ops: &[Op]) -> Vec<u8> {
11 let mut encoded = vec![];
12 for op in ops {
13 op.encode(&mut encoded);
14 }
15 log::trace!("encoded: {encoded:?}");
16 encoded
17}
18
19unsafe fn run(vm: &mut Vm, ops: &[Op]) -> Result<(), NonNull<u8>> {
20 let _ = env_logger::try_init();

Callers 1

runFunction · 0.70

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected