Class: FunctionPrototype

FunctionPrototype(argDefs, returns)

A function prototype

Constructor

new FunctionPrototype(argDefs, returns)

Construct a function prototype.

Parameters:
Name Type Description
argDefs Array.<ArgumentDef.<any>>

The argument definitions

returns Type.<T>

An optional return type

Source:

Classes

FunctionPrototype

Members

mangledArgs

Gets the mangling of the arguments.

Source:

mangledName

The mangled function prototype

Source:

Methods

(static) mangleValue(value, options) → {string}

Mangle the value.

Parameters:
Name Type Description
value any

The value to mangle

options object

Mangling options

Source:
Returns:

The mangled value

Type
string

(static) mangleValues(values, options)

Parameters:
Name Type Description
values Array.<any>

The values to mangle

options object

Mangling options

Source:

invoke(memoryManager, func, …unmarshalledArgs) → {T}

Invoke a function

Parameters:
Name Type Attributes Description
memoryManager MemoryManager

The memory manager

func function

The function to invoke

unmarshalledArgs Array.<any> <repeatable>

The function arguments

Source:
Returns:

An optional return value

Type
T