Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
content_install_limits.hpp File Reference

Decompressed-size budget a content-pack archive must fit before anything in it is inflated. More...

#include <algorithm>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  pulp::state::ContentInstallLimits
 Caps on what an archive may inflate to. More...
class  pulp::state::ContentSizeBudget
 Running admission of archive entries against a ContentInstallLimits. More...

Namespaces

namespace  pulp
namespace  pulp::state
 SequencerStateChannel is the audio-safe transport for a plugin's structured NON-parameter state: the bulk, observable state a step sequencer / mod-matrix / pattern engine holds outside its automatable parameter set (e.g.

Functions

ContentInstallLimits pulp::state::clamp_content_install_bytes (ContentInstallLimits limits, std::uint64_t max_bytes)
 Lower both byte caps to at most max_bytes (a user-facing --max-pack-bytes value).

Detailed Description

Decompressed-size budget a content-pack archive must fit before anything in it is inflated.

A .pulpcontent archive declares each entry's uncompressed size in its central directory, so the whole pack can be admitted or refused from metadata alone, before a single byte lands on the heap or on disk.