Expand description
SQLite and WAL binary format constants.
These constants describe the on-disk layout of SQLite database files and Write-Ahead Log (WAL) files. They are used for forensic carving, integrity checking, and free-page recovery.
All multi-byte integer fields in SQLite headers are big-endian.
Constants§
- SQLITE_
FREELIST_ TRUNK_ OFFSET - Byte offset of the freelist trunk page number in the SQLite header.
- SQLITE_
HEADER_ SIZE - Minimum valid SQLite file size in bytes (the 100-byte file header).
- SQLITE_
PAGE_ SIZE_ OFFSET - Byte offset of the page size field in the SQLite header.
- SQLITE_
WAL_ FRAME_ HEADER_ SIZE - Size of a WAL frame header in bytes.
- SQLITE_
WAL_ HEADER_ SIZE - Size of the SQLite WAL file header in bytes.
Statics§
- MOZL
Z4_ MAGIC - Firefox mozLz4 session file magic bytes.
- SQLITE_
MAGIC - SQLite database file magic bytes (first 16 bytes of any valid SQLite file).