Base
Base (i.e., lower-level) WebAssembly utility namespace.
Usage
var ns = require( '@stdlib/wasm/base' );
ns
Base WebAssembly namespace.
var o = ns;
// returns {...}
The namespace contains the following:
array2dtype( array )
: return the WebAssembly data type for a provided array.arrays2ptrs( ctx, arrays )
: convert a list of arrays to "pointers" (i.e., byte offsets) in WebAssembly module memory.dtype2wasm( dtype )
: return the WebAssembly data type associated with a provided array data type value.strided2object( N, x, stride, offset )
: convert a strided array and associated metadata to an object likely to have the same "shape".
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/wasm/base' );
console.log( objectKeys( ns ) );