signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
12 lines • 399 B
TypeScript
/**
* WASM Format Detection
*
* Utilities for detecting WASM binary formats
*/
import { WasmFormat } from '../types';
/**
* Detect the format of a WASM binary by inspecting the magic bytes
* - WASI P1 modules start with: 0x00 0x61 0x73 0x6D 0x01 0x00 0x00 0x00 (version 1)
*/
export declare function detectWasmFormat(buffer: Buffer): WasmFormat;
//# sourceMappingURL=format-detection.d.ts.map