LocalLongArrayStructure

class LocalLongArrayStructure(val shasambly: SimpleShasambly, val address: Int)(source)

A local long array. It stores the size at the start of it, so you can always get the size using getSize This is the advised type of local long array over StaticallySizedLocalLongArrayStructure

Constructors

Link copied to clipboard
constructor(shasambly: SimpleShasambly, address: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun free()

Marks the storage of this array as free

Link copied to clipboard

Put the element at a given position on top of the stack. Takes the top integer of the stack as position.

fun getElement(index: Int)

Put the element at a given position on top of the stack.

Link copied to clipboard
fun getSize()

Put the size of the long array on top of the stack

Link copied to clipboard

Store an element into the array at a given position The position is defined by the top integer of the stack The value is taken from the stack below the long

fun storeElement(index: Int)

Store an element into the array at a given position The value is given as argument, the value is taken from the top of the stack

fun storeElement(index: Int, value: Double)
fun storeElement(index: Int, value: Long)

Store an element into the array at a given position