ShasamblyOpcodeJumpStaticToRelativeIndex

Generator for opcode Opcodes.JUMP_STATIC, but the argument is the index relative index of an opcode and is recalculated in the #generate function

You can use for Example

ShasamblyOpcodeJumpStaticToRelativeIndex(-2)

to jump to the previous index or

ShasamblyOpcodeJumpStaticToRelativeIndex(1)

to skip the next opcode

See also

Constructors

Link copied to clipboard
constructor(relativeIndex: Int)

Properties

Link copied to clipboard
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