io.neow3j.script.OperandSize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
neow3j: Java/Kotlin/Android Development Toolkit for the Neo Blockchain
package io.neow3j.script;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used to define the size of OpCode operands and operand prefixes.
*
* For example, {@link OpCode#PUSHDATA1} has a prefix size of 1 which means that before the operand there is one byte
* prefix that determines how long the operand is. Or {@link OpCode#JMP} has an operand size of 1 byte which tells
* the offset to jump.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OperandSize {
/**
* @return the OpCode's operand prefix size.
*/
int prefixSize() default 0;
/**
* @return the OpCode's operand size.
*/
int size() default 0;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy