From 6537db3c03d47055b3a74838f2bfaf276689a02f Mon Sep 17 00:00:00 2001 From: richmans Date: Mon, 3 Jul 2023 21:57:53 +0200 Subject: [PATCH] a --- store.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/store.md b/store.md index ab8d6d8..12e65c0 100644 --- a/store.md +++ b/store.md @@ -39,6 +39,12 @@ type may be a class or a string containing the name of a class. The type should # file format Until specified otherwise, all numbers are stored low-endian 64bit unsigned. -the file format is a header followed by a number of blocks. the size and number of blocks are dictated by the header. +the file format is a header followed by a number of blocks. the size and number of blocks are dictated by the header: +* Magic +* Blocksize in bytes +* Number of blocks +* Root file +* Free file +A block is prefixed by a pointer to the next block of that file. In the last block of the file, the pointer is 0. So if you have 1000 byte blocks, each block takes 1008 bytes of space. \ No newline at end of file