MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / fibonacci_parse

Function fibonacci_parse

crates/tinywasm/benches/fibonacci.rs:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const WASM: &[u8] = include_bytes!("../../../examples/rust/out/fibonacci.wasm");
7
8fn fibonacci_parse() -> Result<Module> {
9 let parser = tinywasm_parser::Parser::new();
10 let data = parser.parse_module_bytes(WASM)?;
11 Ok(data)
12}
13
14fn fibonacci_to_twasm(module: &Module) -> Result<Vec<u8>> {
15 let twasm = module.serialize_twasm()?;

Callers 1

criterion_benchmarkFunction · 0.85

Calls 1

parse_module_bytesMethod · 0.80

Tested by

no test coverage detected