PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::PayloadBytes Class Referencefinal

A logical slice, stable across cache eviction and nested reads. More...

#include <payload_readback.hpp>

Public Member Functions

 PayloadBytes () noexcept=default
 
 PayloadBytes (const ScratchReadback &store, ScratchHandle handle, std::uint64_t offset, std::uint64_t size) noexcept
 
std::uint64_t size () const noexcept override
 
ScratchStatus read (std::uint64_t offset, ScratchBuffer destination) const noexcept override
 
- Public Member Functions inherited from pineforge::detail::ScratchByteSource
virtual ~ScratchByteSource () noexcept=default
 
virtual const ReportScratchIoError * carried_failure () const noexcept
 

Detailed Description

A logical slice, stable across cache eviction and nested reads.

The store and its version must outlive this value. Scope erasure invalidates it.

Definition at line 36 of file payload_readback.hpp.

Constructor & Destructor Documentation

◆ PayloadBytes() [1/2]

pineforge::detail::PayloadBytes::PayloadBytes ( )
defaultnoexcept

Referenced by PayloadBytes().

◆ PayloadBytes() [2/2]

pineforge::detail::PayloadBytes::PayloadBytes ( const ScratchReadback & store,
ScratchHandle handle,
std::uint64_t offset,
std::uint64_t size )
inlinenoexcept

Definition at line 39 of file payload_readback.hpp.

References PayloadBytes(), and size().

Member Function Documentation

◆ size()

std::uint64_t pineforge::detail::PayloadBytes::size ( ) const
inlineoverridevirtualnoexcept

◆ read()

ScratchStatus pineforge::detail::PayloadBytes::read ( std::uint64_t offset,
ScratchBuffer destination ) const
inlineoverridevirtualnoexcept

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