class

FVisualScriptProgram

Module
VisualScripting
Header
#include "VisualScripting/VisualScriptProgram.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr uint32_tkMagic"MVSP" little-endian Default 0x5053564Du.
static constexpr uint32_tkVersionDefault 1.
std::vector<std::string>stringsStrings and links are numbered in the order the compiler first reached them.
std::vector<FVisualScriptLink>links
std::vector<FVisualScriptFunctionCode>functions

Public functions

ReturnsNameDescription
boolSerializeLittle-endian bytes, the same for the same program on every platform.
boolDeserializeReads and checks a program: magic, version, every length against the bytes left, and every index against its table.
boolCanEncodeWhether a constant has an MVSP encoding.
booloperator==

Function details

Serialize

C++
bool Serialize(std::vector<uint8_t>& out, std::string& error) const

Little-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) const
Generated from VisualScripting/VisualScriptProgram.h via visualscripting.json · Dec 5, 2026Version 1.1.0