Skip to main content

FORMAT_VERSION

Constant FORMAT_VERSION 

Source
pub const FORMAT_VERSION: u16 = 2;
Expand description

The sekejap disk format, stamped into bytes 18-19 of every page.

Defined ONCE, here, because bytes 18-19 of a page are the only place the number is written; sekejap_core::FORMAT_VERSION and sekejap::FORMAT_VERSION are re-exports of this constant, not copies.

It is NOT meta::FORMAT_VERSION, which is the logical superblock version of the inherited kernel Store (1 or 2, chosen by the compact-cells cargo feature) and says what the pages of that store CONTAIN. This one is the envelope: which sekejap disk format the file is. There is no v1 – every sekejap from 0.17.0 writes and reads 2, an e4 pre-release file carries 0 here, and a value that is not 2 is refused with the file unchanged (docs/core/FORMAT_V2.md).