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 int
Offset of Op data from tag bytestatic 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:
-
COND
public static final byte COND- See Also:
-
DO
public static final byte DO- See Also:
-
LET
public static final byte LET- See Also:
-
LOOP
public static final byte LOOP- See Also:
-
DEF
public static final byte DEF- See Also:
-
LOOKUP
public static final byte LOOKUP- See Also:
-
LAMBDA
public static final byte LAMBDA- See Also:
-
QUERY
public static final byte QUERY- See Also:
-
LOCAL
public static final byte LOCAL- See Also:
-
SET
public static final byte SET- See Also:
-
SPECIAL
public static final byte SPECIAL- See Also:
-
OP_DATA_OFFSET
public static final int OP_DATA_OFFSETOffset of Op data from tag byte- 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
-