WebAssembly

Overview

Helper class to access the webassembly runtime.

Location

 

constructor

Default constructor.

 

constructor

 

WebAssembly()

 

init()

 

WebAssembly()

 

Sub New()

ClearInterval

Stops an interval timer.

 

class method ClearInterval(aVal: Int32)

 

static void ClearInterval(Int32 aVal)

 

static func ClearInterval(_ aVal: Int32)

 

static void ClearInterval(Int32 aVal)

 

Shared Sub ClearInterval(aVal As Int32)

Parameters:

  • aVal:

CreateArray

Create a new array.

 

class method CreateArray: dynamic

 

static dynamic CreateArray()

 

static func CreateArray() -> dynamic

 

static dynamic CreateArray()

 

Shared Function CreateArray() As dynamic

CreateHandle

Creates a handle for a given object.

 

class method CreateHandle(aVal: Object; StringAsObject: Boolean): IntPtr

 

static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)

 

static func CreateHandle(_ aVal: Object, _ StringAsObject: Boolean) -> IntPtr

 

static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)

 

Shared Function CreateHandle(aVal As Object, StringAsObject As Boolean) As IntPtr

Parameters:

  • aVal:
  • StringAsObject:

CreateObject

Create a new empty javascript object.

 

class method CreateObject: dynamic

 

static dynamic CreateObject()

 

static func CreateObject() -> dynamic

 

static dynamic CreateObject()

 

Shared Function CreateObject() As dynamic

CreateProxy

Create a proxy for a given type.

 

class method CreateProxy(o: Object): EcmaScriptObject

 

static EcmaScriptObject CreateProxy(Object o)

 

static func CreateProxy(_ o: Object) -> EcmaScriptObject

 

static EcmaScriptObject CreateProxy(Object o)

 

Shared Function CreateProxy(o As Object) As EcmaScriptObject

Parameters:

  • o:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Eval

Does a javascript eval and returns the result.

 

class method Eval(s: String): dynamic

 

static dynamic Eval(String s)

 

static func Eval(_ s: String) -> dynamic

 

static dynamic Eval(String s)

 

Shared Function Eval(s As String) As dynamic

Parameters:

  • s:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetObjectForHandle

Returns the object value given a handle.

 

class method GetObjectForHandle(aHandle: IntPtr): Object

 

static Object GetObjectForHandle(IntPtr aHandle)

 

static func GetObjectForHandle(_ aHandle: IntPtr) -> Object

 

static Object GetObjectForHandle(IntPtr aHandle)

 

Shared Function GetObjectForHandle(aHandle As IntPtr) As Object

Parameters:

  • aHandle:

GetStringFromHandle

Returns a string, given a handle.

 

class method GetStringFromHandle(handle: Int32; aFree: Boolean): String

 

static String GetStringFromHandle(Int32 handle, Boolean aFree)

 

static func GetStringFromHandle(_ handle: Int32, _ aFree: Boolean) -> String

 

static String GetStringFromHandle(Int32 handle, Boolean aFree)

 

Shared Function GetStringFromHandle(handle As Int32, aFree As Boolean) As String

Parameters:

  • handle:
  • aFree:

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Global

Returns the Global object.

 

class property Global: dynamic read write;

 

class dynamic Global { get; set; }

 

static var Global: dynamic { get{} set{} }

 

class dynamic Global { __get; __set; }

 

Shared Property Global() As dynamic

InvokeMethod

Helper invoke a method with a given set of parameters.

 

class method InvokeMethod(aPtr: ^void; params args: array of Object): Object

 

static Object InvokeMethod(void* aPtr, params Object[] args)

 

static func InvokeMethod(_ aPtr: UnsafeMutablePointer<void>, _ args: Object...) -> Object

 

static Object InvokeMethod(void* aPtr, Object[]... args)

 

Shared Function InvokeMethod(aPtr As ^void, ParamArray args As Object()) As Object

Parameters:

  • aPtr:
  • args:

Object

Returns the javascript Object type /function.

 

class property Object: dynamic read write;

 

class dynamic Object { get; set; }

 

static var Object: dynamic { get{} set{} }

 

class dynamic Object { __get; __set; }

 

Shared Property Object() As dynamic

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ReleaseProxy

Release a proxy.

 

class method ReleaseProxy(o: EcmaScriptObject)

 

static void ReleaseProxy(EcmaScriptObject o)

 

static func ReleaseProxy(_ o: EcmaScriptObject)

 

static void ReleaseProxy(EcmaScriptObject o)

 

Shared Sub ReleaseProxy(o As EcmaScriptObject)

Parameters:

  • o:

SetInterval

Creates a new javascript interval (triggers the delegate every aTimeout msec).

 

class method SetInterval(aFN: WebAssemblyDelegate; aTimeOut: Int32): Int32

 

static Int32 SetInterval(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

static func SetInterval(_ aFN: WebAssemblyDelegate, _ aTimeOut: Int32) -> Int32

 

static Int32 SetInterval(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

Shared Function SetInterval(aFN As WebAssemblyDelegate, aTimeOut As Int32) As Int32

Parameters:

  • aFN:
  • aTimeOut:

SetTimeout

Creates a new javascript timeout (triggers the delegate once at aTimeout msec).

 

class method SetTimeout(aFN: WebAssemblyDelegate; aTimeOut: Int32): Int32

 

static Int32 SetTimeout(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

static func SetTimeout(_ aFN: WebAssemblyDelegate, _ aTimeOut: Int32) -> Int32

 

static Int32 SetTimeout(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

Shared Function SetTimeout(aFN As WebAssemblyDelegate, aTimeOut As Int32) As Int32

Parameters:

  • aFN:
  • aTimeOut:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

Unwrap

Internal api.

 

class method Unwrap(o: IntPtr): IntPtr

 

static IntPtr Unwrap(IntPtr o)

 

static func Unwrap(_ o: IntPtr) -> IntPtr

 

static IntPtr Unwrap(IntPtr o)

 

Shared Function Unwrap(o As IntPtr) As IntPtr

Parameters:

  • o:

UnwrapCall

Internal api.

 

class method UnwrapCall(aType: Type; aVal: Object): Object

 

static Object UnwrapCall(Type aType, Object aVal)

 

static func UnwrapCall(_ aType: Type, _ aVal: Object) -> Object

 

static Object UnwrapCall(Type aType, Object aVal)

 

Shared Function UnwrapCall(aType As Type, aVal As Object) As Object

Parameters:

  • aType:
  • aVal:

Wrap

Internal api.

 

class method Wrap(o: IntPtr): IntPtr

 

static IntPtr Wrap(IntPtr o)

 

static func Wrap(_ o: IntPtr) -> IntPtr

 

static IntPtr Wrap(IntPtr o)

 

Shared Function Wrap(o As IntPtr) As IntPtr

Parameters:

  • o:

 

Global

Returns the Global object.

 

class property Global: dynamic read write;

 

class dynamic Global { get; set; }

 

static var Global: dynamic { get{} set{} }

 

class dynamic Global { __get; __set; }

 

Shared Property Global() As dynamic

Object

Returns the javascript Object type /function.

 

class property Object: dynamic read write;

 

class dynamic Object { get; set; }

 

static var Object: dynamic { get{} set{} }

 

class dynamic Object { __get; __set; }

 

Shared Property Object() As dynamic

 

ClearInterval

Stops an interval timer.

 

class method ClearInterval(aVal: Int32)

 

static void ClearInterval(Int32 aVal)

 

static func ClearInterval(_ aVal: Int32)

 

static void ClearInterval(Int32 aVal)

 

Shared Sub ClearInterval(aVal As Int32)

Parameters:

  • aVal:

CreateArray

Create a new array.

 

class method CreateArray: dynamic

 

static dynamic CreateArray()

 

static func CreateArray() -> dynamic

 

static dynamic CreateArray()

 

Shared Function CreateArray() As dynamic

CreateHandle

Creates a handle for a given object.

 

class method CreateHandle(aVal: Object; StringAsObject: Boolean): IntPtr

 

static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)

 

static func CreateHandle(_ aVal: Object, _ StringAsObject: Boolean) -> IntPtr

 

static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)

 

Shared Function CreateHandle(aVal As Object, StringAsObject As Boolean) As IntPtr

Parameters:

  • aVal:
  • StringAsObject:

CreateObject

Create a new empty javascript object.

 

class method CreateObject: dynamic

 

static dynamic CreateObject()

 

static func CreateObject() -> dynamic

 

static dynamic CreateObject()

 

Shared Function CreateObject() As dynamic

CreateProxy

Create a proxy for a given type.

 

class method CreateProxy(o: Object): EcmaScriptObject

 

static EcmaScriptObject CreateProxy(Object o)

 

static func CreateProxy(_ o: Object) -> EcmaScriptObject

 

static EcmaScriptObject CreateProxy(Object o)

 

Shared Function CreateProxy(o As Object) As EcmaScriptObject

Parameters:

  • o:

Eval

Does a javascript eval and returns the result.

 

class method Eval(s: String): dynamic

 

static dynamic Eval(String s)

 

static func Eval(_ s: String) -> dynamic

 

static dynamic Eval(String s)

 

Shared Function Eval(s As String) As dynamic

Parameters:

  • s:

GetObjectForHandle

Returns the object value given a handle.

 

class method GetObjectForHandle(aHandle: IntPtr): Object

 

static Object GetObjectForHandle(IntPtr aHandle)

 

static func GetObjectForHandle(_ aHandle: IntPtr) -> Object

 

static Object GetObjectForHandle(IntPtr aHandle)

 

Shared Function GetObjectForHandle(aHandle As IntPtr) As Object

Parameters:

  • aHandle:

GetStringFromHandle

Returns a string, given a handle.

 

class method GetStringFromHandle(handle: Int32; aFree: Boolean): String

 

static String GetStringFromHandle(Int32 handle, Boolean aFree)

 

static func GetStringFromHandle(_ handle: Int32, _ aFree: Boolean) -> String

 

static String GetStringFromHandle(Int32 handle, Boolean aFree)

 

Shared Function GetStringFromHandle(handle As Int32, aFree As Boolean) As String

Parameters:

  • handle:
  • aFree:

InvokeMethod

Helper invoke a method with a given set of parameters.

 

class method InvokeMethod(aPtr: ^void; params args: array of Object): Object

 

static Object InvokeMethod(void* aPtr, params Object[] args)

 

static func InvokeMethod(_ aPtr: UnsafeMutablePointer<void>, _ args: Object...) -> Object

 

static Object InvokeMethod(void* aPtr, Object[]... args)

 

Shared Function InvokeMethod(aPtr As ^void, ParamArray args As Object()) As Object

Parameters:

  • aPtr:
  • args:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ReleaseProxy

Release a proxy.

 

class method ReleaseProxy(o: EcmaScriptObject)

 

static void ReleaseProxy(EcmaScriptObject o)

 

static func ReleaseProxy(_ o: EcmaScriptObject)

 

static void ReleaseProxy(EcmaScriptObject o)

 

Shared Sub ReleaseProxy(o As EcmaScriptObject)

Parameters:

  • o:

SetInterval

Creates a new javascript interval (triggers the delegate every aTimeout msec).

 

class method SetInterval(aFN: WebAssemblyDelegate; aTimeOut: Int32): Int32

 

static Int32 SetInterval(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

static func SetInterval(_ aFN: WebAssemblyDelegate, _ aTimeOut: Int32) -> Int32

 

static Int32 SetInterval(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

Shared Function SetInterval(aFN As WebAssemblyDelegate, aTimeOut As Int32) As Int32

Parameters:

  • aFN:
  • aTimeOut:

SetTimeout

Creates a new javascript timeout (triggers the delegate once at aTimeout msec).

 

class method SetTimeout(aFN: WebAssemblyDelegate; aTimeOut: Int32): Int32

 

static Int32 SetTimeout(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

static func SetTimeout(_ aFN: WebAssemblyDelegate, _ aTimeOut: Int32) -> Int32

 

static Int32 SetTimeout(WebAssemblyDelegate aFN, Int32 aTimeOut)

 

Shared Function SetTimeout(aFN As WebAssemblyDelegate, aTimeOut As Int32) As Int32

Parameters:

  • aFN:
  • aTimeOut:

Unwrap

Internal api.

 

class method Unwrap(o: IntPtr): IntPtr

 

static IntPtr Unwrap(IntPtr o)

 

static func Unwrap(_ o: IntPtr) -> IntPtr

 

static IntPtr Unwrap(IntPtr o)

 

Shared Function Unwrap(o As IntPtr) As IntPtr

Parameters:

  • o:

UnwrapCall

Internal api.

 

class method UnwrapCall(aType: Type; aVal: Object): Object

 

static Object UnwrapCall(Type aType, Object aVal)

 

static func UnwrapCall(_ aType: Type, _ aVal: Object) -> Object

 

static Object UnwrapCall(Type aType, Object aVal)

 

Shared Function UnwrapCall(aType As Type, aVal As Object) As Object

Parameters:

  • aType:
  • aVal:

Wrap

Internal api.

 

class method Wrap(o: IntPtr): IntPtr

 

static IntPtr Wrap(IntPtr o)

 

static func Wrap(_ o: IntPtr) -> IntPtr

 

static IntPtr Wrap(IntPtr o)

 

Shared Function Wrap(o As IntPtr) As IntPtr

Parameters:

  • o:

 

constructor

Default constructor.

 

constructor

 

WebAssembly()

 

init()

 

WebAssembly()

 

Sub New()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String