Properties:
Name | Type | Description |
---|---|---|
canvas |
html.Canvas | (default: |
source |
string | (default: |
instance |
object | [readonly] The WASM instance once loaded. |
Methods
-
Loads the WASM module and emits the
ready
event when the module is ready to be used. -
Converts a C++ embind std::vector
to an ArrayBuffer. Do not forget to explicitly delete the vector after it is no longer required, or use the del
flag.Name Type Default Description vec
StdVector The vector.
del
bool false optional Whether to delete the std::vector
after conversion. Returns:
Type Description ArrayBuffer The vector as ArrayBuffer.