Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
checked_allocation.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <limits>

Go to the source code of this file.

Classes

class  pulp::signal::CheckedRetainedByteCharge

Namespaces

namespace  pulp
namespace  pulp::signal

Functions

bool pulp::signal::checked_capacity_product (std::uint64_t lhs, std::uint64_t rhs, std::uint64_t maximum, std::uint64_t &product) noexcept
bool pulp::signal::checked_capacity_sum (std::uint64_t lhs, std::uint64_t rhs, std::uint64_t maximum, std::uint64_t &sum) noexcept
template<typename Element>
bool pulp::signal::checked_allocation_bytes (std::uint64_t elements, std::uint64_t target_max_bytes, std::uint64_t *bytes=nullptr) noexcept
template<typename Element>
bool pulp::signal::checked_repeated_allocation_bytes (std::uint64_t elements_per_allocation, std::uint64_t repetitions, std::uint64_t target_max_bytes, std::uint64_t &aggregate_bytes) noexcept
 Validate one allocation against its address ceiling, then compute the aggregate retained charge for repetitions distinct allocations.

Variables

constexpr std::uint64_t pulp::signal::kTargetAddressMaximumBytes