Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
undo.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6#include <span>
7
8namespace pulp::timeline {
9
13
18struct UndoLimits {
19 std::size_t max_groups = 128;
20 std::size_t max_retained_bytes = 8 * 1024 * 1024;
21};
22
24std::size_t retained_size(std::span<const Command> commands) noexcept;
25
27
28} // namespace pulp::timeline
std::size_t retained_size(const Command &command) noexcept
Returns the retained heap-byte estimate used for command/journal limits.
Definition program_compiler.hpp:18
Bounds the number and retained memory of undo groups in a session.
Definition undo.hpp:18
std::size_t max_retained_bytes
Definition undo.hpp:20
std::size_t max_groups
Definition undo.hpp:19