WebAssembly
Overview
Helper class to access the webassembly runtime.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Platforms: WebAssembly
constructor protected
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 := false): IntPtr
static IntPtr CreateHandle(Object aVal, Boolean StringAsObject = false)
static func CreateHandle(_ aVal: Object, _ StringAsObject: Boolean = false) -> IntPtr
static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)
Shared Function CreateHandle(aVal As Object, StringAsObject As Boolean = false) 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)
Default constructor.
method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean
Parameters:
- aOther: 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)
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 := false): String
static String GetStringFromHandle(Int32 handle, Boolean aFree = false)
static func GetStringFromHandle(_ handle: Int32, _ aFree: Boolean = false) -> String
static String GetStringFromHandle(Int32 handle, Boolean aFree)
Shared Function GetStringFromHandle(handle As Int32, aFree As Boolean = false) 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
class method InvokeMethod(aPtr: ^void; args: array of Object; aResultType: Type := nil): Object
static Object InvokeMethod(void* aPtr, Object[] args, Type aResultType = null)
static func InvokeMethod(_ aPtr: UnsafeMutablePointer<void>, _ args: Object..., _ aResultType: Type = nil) -> Object
static Object InvokeMethod(void* aPtr, Object[] args, Type aResultType)
Shared Function InvokeMethod(aPtr As Ptr(Of Void), args As Object(), aResultType As Type = Null) As Object
Parameters:
- aPtr:
- args:
- aResultType:
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
ReflectConstruct
class method ReflectConstruct(aClassName: String; aArgs: array of Object): dynamic
static dynamic ReflectConstruct(String aClassName, Object[] aArgs)
static func ReflectConstruct(_ aClassName: String, _ aArgs: Object...) -> dynamic
static dynamic ReflectConstruct(String aClassName, Object[] aArgs)
Shared Function ReflectConstruct(aClassName As String, aArgs As Object()) As dynamic
Parameters:
- aClassName:
- aArgs:
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:
TaskWrap
class method TaskWrap(aTarget: IntPtr; aInput: Task)
static void TaskWrap(IntPtr aTarget, Task aInput)
static func TaskWrap(_ aTarget: IntPtr, _ aInput: Task)
static void TaskWrap(IntPtr aTarget, Task aInput)
Shared Sub TaskWrap(aTarget As IntPtr, aInput As Task)
Parameters:
- aTarget:
- aInput:
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.
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 := false): IntPtr
static IntPtr CreateHandle(Object aVal, Boolean StringAsObject = false)
static func CreateHandle(_ aVal: Object, _ StringAsObject: Boolean = false) -> IntPtr
static IntPtr CreateHandle(Object aVal, Boolean StringAsObject)
Shared Function CreateHandle(aVal As Object, StringAsObject As Boolean = false) 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 := false): String
static String GetStringFromHandle(Int32 handle, Boolean aFree = false)
static func GetStringFromHandle(_ handle: Int32, _ aFree: Boolean = false) -> String
static String GetStringFromHandle(Int32 handle, Boolean aFree)
Shared Function GetStringFromHandle(handle As Int32, aFree As Boolean = false) As String
Parameters:
- handle:
- aFree:
InvokeMethod
class method InvokeMethod(aPtr: ^void; args: array of Object; aResultType: Type := nil): Object
static Object InvokeMethod(void* aPtr, Object[] args, Type aResultType = null)
static func InvokeMethod(_ aPtr: UnsafeMutablePointer<void>, _ args: Object..., _ aResultType: Type = nil) -> Object
static Object InvokeMethod(void* aPtr, Object[] args, Type aResultType)
Shared Function InvokeMethod(aPtr As Ptr(Of Void), args As Object(), aResultType As Type = Null) As Object
Parameters:
- aPtr:
- args:
- aResultType:
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
ReflectConstruct
class method ReflectConstruct(aClassName: String; aArgs: array of Object): dynamic
static dynamic ReflectConstruct(String aClassName, Object[] aArgs)
static func ReflectConstruct(_ aClassName: String, _ aArgs: Object...) -> dynamic
static dynamic ReflectConstruct(String aClassName, Object[] aArgs)
Shared Function ReflectConstruct(aClassName As String, aArgs As Object()) As dynamic
Parameters:
- aClassName:
- aArgs:
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:
TaskWrap
class method TaskWrap(aTarget: IntPtr; aInput: Task)
static void TaskWrap(IntPtr aTarget, Task aInput)
static func TaskWrap(_ aTarget: IntPtr, _ aInput: Task)
static void TaskWrap(IntPtr aTarget, Task aInput)
Shared Sub TaskWrap(aTarget As IntPtr, aInput As Task)
Parameters:
- aTarget:
- aInput:
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 protected
Equals virtual (declared in Object)
Default constructor.
method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
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.