LocalByteArrayStructure

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

A local byte 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 byte array over StaticallySizedLocalByteArrayStructure

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

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: Byte)

Store an element into the array at a given position