StaticallySizedLocalLongArrayStructure

class StaticallySizedLocalLongArrayStructure(val shasambly: SimpleShasambly, val address: Int, val size: Int = -1)(source)

A local long array that does not store it's size. If you are using it you have to store its size in some other way. It's advised to use arrays that store their size instead e.g. LocalLongArrayStructure

See also

Constructors

Link copied to clipboard
constructor(shasambly: SimpleShasambly, address: Int, size: Int = -1)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int

Functions

Link copied to clipboard
fun free()

Free the array If the array does not know it's size it takes the top int from the stack as size to free

fun free(size: Int)

Free the array with a given size

Link copied to clipboard

Get an element of the array. The index is the first long from the stack

fun getElement(index: Int)

Get an element of the array. The index is given as argument

Link copied to clipboard

Store an element into the array. The index is the first integer on the stack. The element value is the long below it

fun storeElement(index: Int)

Store an element into the array. The index is given as argument. The element value is the top long on the stack.

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

Store an element into the array. Both index and value are given as arguments