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

Data Structures

class  Core
 
struct  Fold
 

Typedefs

using Byte = unsigned char
 

Functions

std::uint64_t ld64 (const Byte *p) noexcept
 
void st64 (Byte *p, std::uint64_t value) noexcept
 
std::uint32_t ld32 (const Byte *p) noexcept
 
void st32 (Byte *p, std::uint32_t value) noexcept
 

Variables

constexpr std::uint64_t kMagic = 0x3142535243534650ull
 
constexpr std::uint64_t kVersion = 1
 
constexpr std::uint32_t kTypeIndexLeaf = 2
 
constexpr std::uint32_t kTypeIndexNode = 3
 
constexpr std::uint32_t kTypeHandleLeaf = 4
 
constexpr std::uint32_t kTypeHandleNode = 5
 
constexpr std::uint32_t kTypeCells = 6
 
constexpr std::uint32_t kTypeBlob = 7
 
constexpr std::uint32_t kTypeFree = 8
 
constexpr std::size_t kHeader = 16
 
constexpr std::size_t kTrailer = 16
 
constexpr std::size_t kCell = 64
 
constexpr std::size_t kCellPayload = 56
 
constexpr std::size_t kWorkPages = 6
 
constexpr std::uint64_t kLive = 1
 
constexpr std::uint64_t kGhost = 2
 
constexpr unsigned kMaxDepth = 48
 
constexpr std::size_t kMaxHeight = 12
 
constexpr std::size_t kSuperFields = 18
 
constexpr std::uint64_t kNoSlot = UINT64_MAX
 

Typedef Documentation

◆ Byte

Definition at line 27 of file scratch_store_impl.hpp.

Function Documentation

◆ ld64()

◆ st64()

◆ ld32()

◆ st32()

Variable Documentation

◆ kMagic

std::uint64_t pineforge::detail::scratch_impl::kMagic = 0x3142535243534650ull
constexpr

◆ kVersion

std::uint64_t pineforge::detail::scratch_impl::kVersion = 1
constexpr

◆ kTypeIndexLeaf

std::uint32_t pineforge::detail::scratch_impl::kTypeIndexLeaf = 2
constexpr

◆ kTypeIndexNode

std::uint32_t pineforge::detail::scratch_impl::kTypeIndexNode = 3
constexpr

◆ kTypeHandleLeaf

std::uint32_t pineforge::detail::scratch_impl::kTypeHandleLeaf = 4
constexpr

◆ kTypeHandleNode

std::uint32_t pineforge::detail::scratch_impl::kTypeHandleNode = 5
constexpr

◆ kTypeCells

std::uint32_t pineforge::detail::scratch_impl::kTypeCells = 6
constexpr

◆ kTypeBlob

std::uint32_t pineforge::detail::scratch_impl::kTypeBlob = 7
constexpr

◆ kTypeFree

std::uint32_t pineforge::detail::scratch_impl::kTypeFree = 8
constexpr

◆ kHeader

std::size_t pineforge::detail::scratch_impl::kHeader = 16
constexpr

◆ kTrailer

std::size_t pineforge::detail::scratch_impl::kTrailer = 16
constexpr

◆ kCell

std::size_t pineforge::detail::scratch_impl::kCell = 64
constexpr

◆ kCellPayload

std::size_t pineforge::detail::scratch_impl::kCellPayload = 56
constexpr

◆ kWorkPages

std::size_t pineforge::detail::scratch_impl::kWorkPages = 6
constexpr

◆ kLive

std::uint64_t pineforge::detail::scratch_impl::kLive = 1
constexpr

◆ kGhost

std::uint64_t pineforge::detail::scratch_impl::kGhost = 2
constexpr

◆ kMaxDepth

unsigned pineforge::detail::scratch_impl::kMaxDepth = 48
constexpr

◆ kMaxHeight

std::size_t pineforge::detail::scratch_impl::kMaxHeight = 12
constexpr

◆ kSuperFields

std::size_t pineforge::detail::scratch_impl::kSuperFields = 18
constexpr

◆ kNoSlot

std::uint64_t pineforge::detail::scratch_impl::kNoSlot = UINT64_MAX
constexpr