PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pf_scratch_io_policy_v1 Struct Reference

Disk scratch write batching, independent of resident cache policy. More...

#include <pineforge.h>

Data Fields

uint32_t struct_size
 
uint32_t version
 
uint64_t write_batch_bytes
 
uint64_t reserved [2]
 

Detailed Description

Disk scratch write batching, independent of resident cache policy.

Set struct_size = sizeof(pf_scratch_io_policy_v1), version = 1 and both reserved words to zero. write_batch_bytes is successful write traffic in bytes: default 65536; every uint64_t value is valid. Positive values retain the before-next-batch sync/discard order. Zero syncs/discards each positive transfer before write/write_some returns success, including short writes. This is not a logical history limit or a physical-memory guarantee. The fixed clean-read and userspace sequence windows remain unchanged.

Definition at line 1019 of file pineforge.h.

Field Documentation

◆ struct_size

uint32_t pf_scratch_io_policy_v1::struct_size

Definition at line 1020 of file pineforge.h.

◆ version

uint32_t pf_scratch_io_policy_v1::version

Definition at line 1021 of file pineforge.h.

◆ write_batch_bytes

uint64_t pf_scratch_io_policy_v1::write_batch_bytes

Definition at line 1022 of file pineforge.h.

◆ reserved

uint64_t pf_scratch_io_policy_v1::reserved[2]

Definition at line 1023 of file pineforge.h.


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