Module |
|
Header |
/Engine/Source/Runtime/RigVM/Public/RigVMCore/RigVMByteCode.h |
Include |
#include "RigVMCore/RigVMByteCode.h" |
struct FRigVMByteCode
The FRigVMByteCode is a container to store a list of instructions with their corresponding data. The byte code is then used within a VM to execute. To iterate over the instructions within the byte code you can use GetInstructions() to retrieve a FRigVMInstructionArray.
Name | Description | |
---|---|---|
|
FRigVMByteCode() |
Name | Description | ||
---|---|---|---|
|
AddChangeTypeOp ( |
Adds a change-type operator to reuse a register for a smaller or same size type |
|
|
AddCopyOp ( |
Adds a copy operator to copy the content of a source argument to a target argument |
|
|
AddDecrementOp ( |
Adds an decrement operator to decrement a int32 argument |
|
|
AddEqualsOp ( |
Adds an equals operator to store the comparison result of A and B into a Result argument |
|
|
AddExecuteOp ( |
Adds an execute operator given its function index operands |
|
|
AddExitOp() |
Adds an exit operator to exit the execution loop |
|
|
AddFalseOp ( |
Adds a false operator to set a given argument to false |
|
|
AddIncrementOp ( |
Adds an increment operator to increment a int32 argument |
|
|
AddJumpIfOp ( |
Adds an absolute, forward or backward jump operator based on a condition argument |
|
|
AddJumpOp ( |
Adds an absolute, forward or backward jump operator |
|
|
AddNotEqualsOp ( |
Adds an not-equals operator to store the comparison result of A and B into a Result argument |
|
|
AddTrueOp ( |
Adds a true operator to set a given argument to true |
|
|
AddZeroOp ( |
Adds a zero operator to zero the memory of a given argument |
|
|
Empty() |
Resets the container and removes all memory |
|
|
const TArray... |
GetByteCode() |
Returns the raw data of the byte code |
|
FRigVMInstru... |
GetInstructions() |
Returns an instruction array for iterating over all operators |
|
const OpType... |
GetOpAt ( |
Returns an operator at a given byte code index |
|
const OpType... |
GetOpAt ( |
Returns an operator for a given instruction |
|
GetOpCodeAt ( |
Returns the opcode at a given byte index |
|
|
TArrayView< ... |
GetOperandsAt |
Returns a list of operands at a given byte code index |
|
TArrayView< ... |
GetOperandsForExecuteOp ( |
Returns the operands for an execute operator / instruction at a given byte code index |
|
TArrayView< ... |
GetOperandsForExecuteOp ( |
Returns the operands for a given execute instruction |
|
GetOpNumBytesAt |
Returns the size of the operator in bytes at a given byte index |
|
|
FRigVMByteCo... |
GetStatistics() |
Returns the statistics information |
|
Num() |
Returns the number of instructions in this container |
|
|
Reset() |
Resets the container and maintains all memory |
|
|
Serialize ( |