Package convex.core.lang
Class Ops
java.lang.Object
convex.core.lang.Ops
Static utility class for coded operations.
Ops are the fundamental units of code (e.g. as used to implement Actors), and may be
effectively considered as "bytecode" for the decentralised state machine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONSTANT
public static final byte CONSTANT- See Also:
-
INVOKE
public static final byte INVOKE- See Also:
-
DO
public static final byte DO- See Also:
-
COND
public static final byte COND- See Also:
-
LOOKUP
public static final byte LOOKUP- See Also:
-
DEF
public static final byte DEF- See Also:
-
LAMBDA
public static final byte LAMBDA- See Also:
-
LET
public static final byte LET- See Also:
-
QUERY
public static final byte QUERY- See Also:
-
LOOP
public static final byte LOOP- See Also:
-
LOCAL
public static final byte LOCAL- See Also:
-
SET
public static final byte SET- See Also:
-
SPECIAL_BASE
public static final byte SPECIAL_BASE- See Also:
-
-
Constructor Details
-
Ops
public Ops()
-
-
Method Details
-
read
Reads an Op from the given Blob. Assumes tag specifying an Op already read.- Type Parameters:
T
- The return type of the Op- Parameters:
b
- Blob to read frompos
- Start position in Blob (location of tag byte)- Returns:
- New decoded instance
- Throws:
BadFormatException
- In the event of any encoding error
-