Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
serialize.hpp File Reference
#include <pulp/runtime/result.hpp>
#include <pulp/timeline/command.hpp>
#include <pulp/timeline/model.hpp>
#include <pulp/timeline/schema_registry.hpp>
#include <pulp/timeline/schema_release.hpp>
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  pulp::timeline::SerializeOptions
 Output quota for project serialization. More...
struct  pulp::timeline::SerializedSnapshot
 Canonical serialized project plus extension-preservation status. More...
struct  pulp::timeline::ProjectSnapshotCounts
 Structural item counts extracted from a serialized project. More...
struct  pulp::timeline::ProjectSnapshotSummary
 Allocation-light metadata view for project browsers and admission checks. More...

Namespaces

namespace  pulp
namespace  pulp::timeline

Functions

runtime::Result< SerializedSnapshot, PersistenceError > pulp::timeline::serialize_project (const Project &project, const SchemaRegistry &registry, const SerializeOptions &options={})
 Serializes a model-valid project as canonical UTF-8 JSON.
runtime::Result< SerializedSnapshot, PersistenceError > pulp::timeline::serialize_project_for_release (const Project &project, const SchemaRegistry &registry, const SchemaReleaseMap &release, const SerializeOptions &options={})
 Serializes a project using the schema versions pinned by a release map.
runtime::Result< ProjectSnapshotSummary, PersistenceError > pulp::timeline::peek_project_summary (std::string_view json, const SchemaRegistry &registry, const DecodeLimits &limits={})
 Scans project metadata and structural counts without constructing Project.
runtime::Result< Project, PersistenceError > pulp::timeline::deserialize_project (std::string_view json, const SchemaRegistry &registry, const DecodeLimits &limits={})
 Decodes canonical Timeline JSON into a validated Project.
runtime::Result< std::vector< Command >, PersistenceError > pulp::timeline::deserialize_commands (std::string_view json, const SchemaRegistry &registry, const DecodeLimits &limits={})
 Decodes a JSON command array through the supplied schema registry.