Skip to main content

Practice ยท 2 of 2

The Hostile File

Implement kv_load with full validation: magic, version, exact length (short read โ†’ KV_ETRUNC), checksum before touching the table (mismatch โ†’ KV_EBADSUM). Load must RESET the destination store first.

Difficulty: intermediate

Back to lesson: Practice: Persistence & the Hostile File