Classes | |
| struct | TypedArrayName |
| struct | TypedArrayName< float > |
| struct | TypedArrayName< uint32_t > |
| struct | TypedArrayName< uint8_t > |
Functions | |
| void | throwJsError (const std::string &msg) |
| template<typename E> | |
| auto | unwrap (E &&e) |
| template<typename S> | |
| emscripten::val | makeTypedArray (const S *data, size_t count) |
| template<typename V, typename S, size_t Arity = 1> | |
| emscripten::val | packedToTypedArray (const V &v) |
| template<typename V, typename S, size_t Arity = 1> | |
| V | packedFromTypedArray (emscripten::val arr) |
| std::function< bool(float)> | jsToCppCallback (emscripten::val cb) |
| std::function< bool(float)> Wasm::jsToCppCallback | ( | emscripten::val | cb | ) |
| emscripten::val Wasm::makeTypedArray | ( | const S * | data, |
| size_t | count ) |
The view aliases WASM heap memory and detaches on growth; copy out, never retain or return it.
| V Wasm::packedFromTypedArray | ( | emscripten::val | arr | ) |
| emscripten::val Wasm::packedToTypedArray | ( | const V & | v | ) |
| void Wasm::throwJsError | ( | const std::string & | msg | ) |
| auto Wasm::unwrap | ( | E && | e | ) |