MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / parse_bytes

Function parse_bytes

crates/parser/src/lib.rs:323–326  ·  view source on GitHub ↗

Parse a module from bytes

(wasm: &[u8])

Source from the content-addressed store, hash-verified

321
322/// Parse a module from bytes
323pub fn parse_bytes(wasm: &[u8]) -> Result<Module> {
324 let data = Parser::new().parse_module_bytes(wasm)?;
325 Ok(data)
326}
327
328#[cfg(feature = "std")]
329/// Parse a module from a file. Requires the `std` feature.

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
runFunction · 0.85
parse_module_bytesFunction · 0.85
load_module_from_bytesFunction · 0.85

Calls 1

parse_module_bytesMethod · 0.80