[go: up one dir, main page]

[][src]Function infer::is_app

pub fn is_app(buf: &[u8]) -> bool

Determines whether a buffer is an application type.

Examples

use std::fs;
assert!(infer::is_app(&fs::read("testdata/sample.wasm").unwrap()));