PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::journal_codec Namespace Reference

Data Structures

struct  Reader
 
class  StoreSource
 
class  WordSource
 
struct  WorkObserver
 
struct  Writer
 

Enumerations

enum class  WorkOperation {
  payload_source ,
  payload_read ,
  encoder_word ,
  writer_status
}
 

Functions

const WorkObserver * set_work_observer (const WorkObserver *observer) noexcept
 
void observe_work (WorkOperation operation, std::uint64_t bytes=0) noexcept
 
ScratchStatus find (CommandScratchStore &store, std::uint64_t key, ScratchRecordInfo &out) noexcept
 
ScratchStatus finish (CommandScratchStore &store, ScratchStatus status) noexcept
 
ScratchStatus put (CommandScratchStore &store, std::uint64_t key, const ScratchByteSource &value) noexcept
 
ScratchStatus clear (CommandScratchStore &store) noexcept
 

Variables

thread_local const WorkObserver * work_observer = nullptr
 

Enumeration Type Documentation

◆ WorkOperation

Enumerator
payload_source 
payload_read 
encoder_word 
writer_status 

Definition at line 13 of file journal_codec.hpp.

Function Documentation

◆ set_work_observer()

const WorkObserver * pineforge::detail::journal_codec::set_work_observer ( const WorkObserver * observer)
inlinenoexcept

Definition at line 23 of file journal_codec.hpp.

References work_observer.

◆ observe_work()

void pineforge::detail::journal_codec::observe_work ( WorkOperation operation,
std::uint64_t bytes = 0 )
inlinenoexcept

◆ find()

◆ finish()

ScratchStatus pineforge::detail::journal_codec::finish ( CommandScratchStore & store,
ScratchStatus status )
inlinenoexcept

◆ put()

ScratchStatus pineforge::detail::journal_codec::put ( CommandScratchStore & store,
std::uint64_t key,
const ScratchByteSource & value )
inlinenoexcept

◆ clear()

ScratchStatus pineforge::detail::journal_codec::clear ( CommandScratchStore & store)
inlinenoexcept

Variable Documentation

◆ work_observer

thread_local const WorkObserver* pineforge::detail::journal_codec::work_observer = nullptr
inline

Definition at line 22 of file journal_codec.hpp.

Referenced by observe_work(), and set_work_observer().