File Format design
Points to consider while designing a file format
- prefer self-describing files (no external metadata)
- checksum
- version number
- magic bytes (at beginning or end)
- creation date
- encoding for dates, text, binary data must follow some standard.
- endian (little or big)
- use TLV (tag-length-value) ?
- use PNG idea - have series of chunks, each with a type, length and data. Unrecognized chunks can be ignored.
References
Written on July 16, 2016