[][src]Function wasmparser::validate

pub fn validate(bytes: &[u8], config: Option<ValidatingParserConfig>) -> bool

Test whether the given buffer contains a valid WebAssembly module, analogous to WebAssembly.validate in the JS API.