ShasamblyLateinitOpcode

Just a tool to help you generate stuff This opcode can be replaced later by a working one and for the time just works as a dummy opcode This is NOT an opcode that can be generated, it just redirects the generation to a given opcode and will throw an error if it did not receive an opcode to generate until generation (when the generation function is called) Only use if it is needed, it is much better to provide the opcodes directly than to use a placeholder opcode

Constructors

Link copied to clipboard
constructor(size: Int)

Properties

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

Returns the size of the ShasamblyOpcode in bytes This is required by by the generate function of some opcodes because they have to resolve opcode indexes to byte indexes This value should be constant and not depend on other opcodes!

Functions

Link copied to clipboard
open override fun generate(gen: ShasamblyGenerator): ByteArray

Generates the ShasamblyOpcode Return's an array of it's bytes

Link copied to clipboard
fun init(opcode: ShasamblyOpcode)