StaticallySizedLocalByteArrayStructure

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

A local byte 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. LocalByteArrayStructure

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 integer 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 byte below it

fun storeElement(index: Int)

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

fun storeElement(index: Int, value: Byte)

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