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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONSTANT
public static final byte CONSTANT- See Also:
- Constant Field Values
-
INVOKE
public static final byte INVOKE- See Also:
- Constant Field Values
-
DO
public static final byte DO- See Also:
- Constant Field Values
-
COND
public static final byte COND- See Also:
- Constant Field Values
-
LOOKUP
public static final byte LOOKUP- See Also:
- Constant Field Values
-
DEF
public static final byte DEF- See Also:
- Constant Field Values
-
LAMBDA
public static final byte LAMBDA- See Also:
- Constant Field Values
-
LET
public static final byte LET- See Also:
- Constant Field Values
-
QUERY
public static final byte QUERY- See Also:
- Constant Field Values
-
LOOP
public static final byte LOOP- See Also:
- Constant Field Values
-
LOCAL
public static final byte LOCAL- See Also:
- Constant Field Values
-
SET
public static final byte SET- See Also:
- Constant Field Values
-
SPECIAL_BASE
public static final byte SPECIAL_BASE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Ops
public Ops()
-
-
Method Details
-
read
Reads an Op from the given ByteBuffer. Assumes Message tag already read.- Type Parameters:
T
- The return type of the Op- Parameters:
bb
- ByteBuffer- Returns:
- Op read from ByteBuffer
- Throws:
BadFormatException
- If encoding is invalid
-