Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::BlockScratch Class Reference

Block-local scratch view for realtime/offline processing. More...

#include <process_block.hpp>

Public Member Functions

 ScratchArenaView ()=default
 ScratchArenaView (std::span< std::byte > memory) noexcept
 ScratchArenaView (const ScratchArenaView &)=delete
 ScratchArenaView (ScratchArenaView &&)=default
void reset () noexcept
std::size_t size_bytes () const noexcept
std::size_t used_bytes () const noexcept
std::size_t remaining_bytes () const noexcept
bool empty () const noexcept
std::span< std::byte > try_allocate_bytes (std::size_t byte_count, std::size_t alignment) noexcept
template<typename T>
std::span< T > try_allocate (std::size_t count) noexcept

Detailed Description

Block-local scratch view for realtime/offline processing.

Storage is caller-owned and should be reset at the start of each block.

Member Function Documentation

◆ empty()

bool pulp::format::ScratchArenaView::empty ( ) const
inlinenoexceptinherited

◆ remaining_bytes()

std::size_t pulp::format::ScratchArenaView::remaining_bytes ( ) const
inlinenoexceptinherited

◆ reset()

void pulp::format::ScratchArenaView::reset ( )
inlinenoexceptinherited

◆ ScratchArenaView() [1/4]

◆ ScratchArenaView() [2/4]

pulp::format::ScratchArenaView::ScratchArenaView ( const ScratchArenaView & )
delete

◆ ScratchArenaView() [3/4]

pulp::format::ScratchArenaView::ScratchArenaView ( ScratchArenaView && )
default

◆ ScratchArenaView() [4/4]

pulp::format::ScratchArenaView::ScratchArenaView ( std::span< std::byte > memory)
inlineexplicitnoexcept

◆ size_bytes()

std::size_t pulp::format::ScratchArenaView::size_bytes ( ) const
inlinenoexceptinherited

◆ try_allocate()

template<typename T>
std::span< T > pulp::format::ScratchArenaView::try_allocate ( std::size_t count)
inlinenoexceptinherited

◆ try_allocate_bytes()

std::span< std::byte > pulp::format::ScratchArenaView::try_allocate_bytes ( std::size_t byte_count,
std::size_t alignment )
inlinenoexceptinherited

◆ used_bytes()

std::size_t pulp::format::ScratchArenaView::used_bytes ( ) const
inlinenoexceptinherited

The documentation for this class was generated from the following file: