mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
7 lines
197 B
Rust
7 lines
197 B
Rust
//! Utility functions for the WebAssembly module
|
|
|
|
/// Detect if a provided binary is a Wasm file
|
|
pub fn is_wasm_binary(binary: &[u8]) -> bool {
|
|
binary.starts_with(&[b'\0', b'a', b's', b'm'])
|
|
}
|