Web worker script for executing WASM computations. The worker script switches between the AS utils or C utils using the handleAS and handleC methods.
- Source:
 
Methods
(inner) handleAS(moduleName, ref, data, mod, funcArgs) → {ArrayBuffer}
Parameters:
| Name | Type | Description | 
|---|---|---|
moduleName | 
            
            String | |
ref | 
            
            Object | Object used for running setting arguments in a funciton  | 
        
data | 
            
            Array | data object to be used for the run  | 
        
mod | 
            
            Object | module object used with function  | 
        
funcArgs | 
            
            Array | array containing the additional arguments to be used in the function  | 
        
- Source:
 
Returns:
result object to be sent back from the worker
- Type
 - ArrayBuffer
 
(inner) handleC(moduleName, funcName, data, module) → {ArrayBuffer}
function for handling parametrization of C-based Web Assembly functions
Parameters:
| Name | Type | Description | 
|---|---|---|
moduleName | 
            
            String | name of the module running the script  | 
        
funcName | 
            
            String | name of the function to run in the module  | 
        
data | 
            
            Array | data object to use for the run  | 
        
module | 
            
            Object | module run containing the memory alloc functions  | 
        
- Source:
 
Returns:
- result buffer to be sent back from the worker
 
- Type
 - ArrayBuffer