class
FVisualScriptProgram
- Module
- VisualScripting
- Header
#include "VisualScripting/VisualScriptProgram.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kMagic | "MVSP" little-endian Default 0x5053564Du. |
static constexpr uint32_t | kVersion | Default 1. |
std::vector<std::string> | strings | Strings and links are numbered in the order the compiler first reached them. |
std::vector<FVisualScriptLink> | links | |
std::vector<FVisualScriptFunctionCode> | functions |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | Serialize | Little-endian bytes, the same for the same program on every platform. |
bool | Deserialize | Reads and checks a program: magic, version, every length against the bytes left, and every index against its table. |
bool | CanEncode | Whether a constant has an MVSP encoding. |
bool | operator== |
Function details
Serialize
C++
bool Serialize(std::vector<uint8_t>& out, std::string& error) constLittle-endian bytes, the same for the same program on every platform. A constant that cannot be written (a container, an object) makes this return false.
Deserialize
C++
static bool Deserialize(const uint8_t* data, size_t size, FVisualScriptProgram& out, std::string& error)Reads and checks a program: magic, version, every length against the bytes left, and every index against its table. On failure out is left empty.
CanEncode
C++
static bool CanEncode(const VisualScriptValue& value)Whether a constant has an MVSP encoding.
operator==
C++
bool operator==(const FVisualScriptProgram& other) constGenerated from VisualScripting/VisualScriptProgram.h via visualscripting.json · Dec 5, 2026Version 1.1.0