blindforge/FORMATS.md
2026-07-27 21:35:40 +02:00

24 lines
530 B
Markdown

# Internal storage formats
This file describes the internal storage formats used for persistent data.
## Repository metadata
`meta.bin`
File structure:
* Version (1 byte): `0x00`
* Time (8 bytes, big endian)
* Title length (4 bytes, big endian) (may be zero)
* Title
* Repository URL length (4 bytes, big endian)
* Repository URL
* Commit hash length (4 bytes, big endian)
* Commit hash
* Content
Content is a concatenation of entries. Entry structure:
* File path length (4 bytes, big endian)
* File path
* Hash (44 bytes)