ShasamblyGenerator

A generator for Shasambly. It has a list of all it's ShasamblyOpcodes and will convert all of them into a single byte array using #generate

Inheritors

Constructors

Link copied to clipboard
constructor(contents: Array<ShasamblyOpcode>)
constructor(contents: MutableList<ShasamblyOpcode>)

Properties

Link copied to clipboard
open override val size: Int
Link copied to clipboard
val sizes: List<Int>

The sizes of all the opcodes (If a #sizesCache is given return it, if not generate all the sizes using map)

Functions

Link copied to clipboard
open override fun add(element: ShasamblyOpcode): Boolean
open override fun add(index: Int, element: ShasamblyOpcode)
Link copied to clipboard
open override fun addAll(elements: Collection<ShasamblyOpcode>): Boolean
open override fun addAll(index: Int, elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: ShasamblyOpcode): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard

Generates all content Opcodes into a single ByteArray

Link copied to clipboard
open operator override fun get(index: Int): ShasamblyOpcode
Link copied to clipboard
open override fun indexOf(element: ShasamblyOpcode): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<ShasamblyOpcode>
Link copied to clipboard
open override fun lastIndexOf(element: ShasamblyOpcode): Int
Link copied to clipboard
Link copied to clipboard
fun positionOfIndex(index: Int): Int

Resolve the position of a given index

Link copied to clipboard
open override fun remove(element: ShasamblyOpcode): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): ShasamblyOpcode
Link copied to clipboard
open override fun retainAll(elements: Collection<ShasamblyOpcode>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: ShasamblyOpcode): ShasamblyOpcode
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<ShasamblyOpcode>