mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 13:58:38 +00:00
Added basic example of Wasmer-js
This commit is contained in:
4
lib/js-api/src/utils.rs
Normal file
4
lib/js-api/src/utils.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
/// Check if the provided bytes are wasm-like
|
||||
pub fn is_wasm(bytes: impl AsRef<[u8]>) -> bool {
|
||||
bytes.as_ref().starts_with(b"\0asm")
|
||||
}
|
||||
Reference in New Issue
Block a user