Object
VM
VM | Constructor that takes Configuration as parameter. |
SlotCount | Returns the number of slots available to the current foreign method. |
AbortFiber | Sets the current fiber to be aborted, and uses the value in given slot number as the runtime error object. |
CallMethod | Calls a method that has been made ready in a Method handle, taking class and parameters from current slot stack. |
CollectGarbage | Immediately runs the garbage collector to free unused memory. |
CreateCallHandle | Creates call handle to call a method in Wren script. |
EnsureSlots | Ensures that the foreign method stack has at least [slotCount] available for use, growing the stack if needed. |
shared FromVMPtr | Casts Ptr gotten in Foreign method callback to VM class. |
GetClassHandle | Gets handle to class in Wren script. |
GetListCount | Returns the number of elements in the list stored in list in given slot. |
GetListElement | Reads element from given index from the list in listSlot and stores it in destinationSlot. |
GetMapCount | Returns the number of entries in the map stored in given slot. |
GetMapValue | Retrieves a value with the key in keySlot from the map in mapSlot and stores it in valueSlot. |
GetVariable | Looks up the top level variable with given name in resolved module name and stores it in specified slot. |
HasVariable | Checks if top level variable given name in resolved module name and returns true if it was found, else false. |
InsertInList | Inserts or appends to list. Takes the value stored at elementSlot and inserts it into the list stored at listSlot at index. |
Interpret | Interprets Wren script. |
MapContainsKey | Returns true if the key in keySlot is found in the map placed in mapSlot. |
RemoveMapValue | Removes a value from the map in mapSlot, with the key from keySlot, and places it in removedValueSlot. If not found, removedValueSlot is set to null, the same behavior as the Wren Map API. |
SetListElement | Sets the value stored at given index in the which is stored in listSlot, to the value from sourceSlot. |
SetMapValue | Takes the value stored at valueSlot and inserts it into the map stored at mapSlot with key keySlot. |
SetSlotNewForeign | Binds Xojo object to slot. |
SetSlotNewList | Stores a new empty list in given slot number. |
SetSlotNewMap | Stores a new empty map in given slot number. |
SlotBool | Sets or gets Wren slot with Boolean value. |
SlotDouble | Sets or gets Wren slot with Double value. |
SlotForeign | Gets Xojo object from Foreign slot. |
SlotHandle | Sets or gets Wren slot with Handle value. |
SlotString | Sets or gets Wren slot with String value. |
SlotToNull | Stores NULL in given slot. |
SlotType | Gets the type of the object in given slot. |