Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
limits.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstddef>
7#include <cstdint>
8#include <string_view>
9
11
16inline constexpr std::string_view kManifestPath = "capsule.json";
17
19 std::size_t max_members = 20000;
20 std::uint64_t max_compressed_bytes = 2ull * 1024 * 1024 * 1024;
21 std::uint64_t max_expanded_bytes = 8ull * 1024 * 1024 * 1024;
22 std::uint64_t max_member_expanded_bytes = 2ull * 1024 * 1024 * 1024;
24 std::uint32_t max_expansion_ratio = 200;
25 std::uint64_t max_manifest_bytes = 16ull * 1024 * 1024;
26 std::size_t max_path_bytes = 1024;
27 std::size_t max_path_depth = 32;
30 std::uint64_t max_working_set_bytes = 256ull * 1024 * 1024;
31};
32
36
37} // namespace pulp::authoring_capsule
Definition archive.hpp:24
constexpr CapsuleLimits kCapsuleLimitsV1
The frozen v1 budgets.
Definition limits.hpp:35
constexpr std::string_view kManifestPath
Fixed path of the manifest, which must also be the archive's first member.
Definition limits.hpp:16
std::size_t max_path_bytes
Definition limits.hpp:26
std::uint32_t max_expansion_ratio
Expansion ratio ceiling, applied per member and to the archive total.
Definition limits.hpp:24
std::uint64_t max_working_set_bytes
Working-set ceiling for admission.
Definition limits.hpp:30
std::uint64_t max_manifest_bytes
Definition limits.hpp:25
std::size_t max_path_depth
Definition limits.hpp:27
std::uint64_t max_member_expanded_bytes
Definition limits.hpp:22
std::size_t max_members
Definition limits.hpp:19
std::uint64_t max_expanded_bytes
Definition limits.hpp:21
std::uint64_t max_compressed_bytes
Definition limits.hpp:20