Expand description
Caller-paged larger-than-RAM replica stream (E06.6).
A file is read in fixed PAGE_BYTES windows. The window is the only
payload buffer on this path: the dataset is never loaded as a whole, and
tests must not allocate a 42 MiB (or file-sized) replica buffer to prove
paging. Sequential SHA-384 covers every page in order.
Structs§
- Page
Window - Caller-owned 4 KiB window plus fill/peak counters.
- Paged
File - Open replica file. Length is metadata, not a loaded buffer.
Constants§
- PAGE_
BYTES - Replica page window. Not a dataset allocation and not a 64 KiB QNF chunk.
Functions§
- hash_
file_ pages - Sequential SHA-384 over every page.
windowis the only payload buffer. - verify_
file_ pages - Hash every page and require
expected_lenplusexpecteddigest. - write_
patterned_ pages - Write
page_countpatterned pages. Holds at most one page in RAM.