! On-disk geometry, magic, and header field offsets for the storage engine. ! ! All multi-byte on-disk fields are big-endian. The values here define the ! file format: the magic that identifies a store file, the page size, the ! 100-byte database header on page 1, the B+tree page
// Source: https://github.com/CodeAbra/iai-personal-memory-engine | License: MIT | Copyright 2026 Areg Noya // Provided via justclaw.it.com; keep this notice with the code. //! On-disk geometry, magic, and header field offsets for the storage engine. //! //! All multi-byte on-disk fields are big-endian. The values here define the //! file format: the magic that identifies a store file, the page size, the //! 100-byte database header on page 1, the B+tree page-type bytes, the overflow //! spill threshold, and the byte offsets of every header field. /// File magic at offset 0 of page 1. Exactly 16 bytes. This format is its own /// and is not byte-compatible with any other database file. pub const DB_MAGIC: [u8; 16] = *b"LILLI storage 1\x00"; /// Bytes per page. Payloads whose length exceed ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key