added file format documentation

This commit is contained in:
Izaya 2020-03-08 02:16:31 +11:00
parent 9e7d778e21
commit b13fae7d29
2 changed files with 28 additions and 0 deletions

14
lz16/README.md Normal file
View File

@ -0,0 +1,14 @@
# LZ16 - simple compressed file format
LZ16 provides a simple format for reading and writing LZSS-compressed files on memory-contained systems.
## File format
LZ16 files start with a 4 byte header, reading "lz16".
This is followed by an arbitrary number of blocks in the format:
- 2 bytes compressed data length
- the compressed data
This is terminated either by a zero-length block, or the end of the file.

14
mtar/README.md Normal file
View File

@ -0,0 +1,14 @@
# mtar - Minitel Archiver
mtar is a file format for storing multiple files in a single file, much like tar, cpio or zip.
## File format
mtar archive files consist of a number of file entries, in the following format:
- 2 bytes file name length
- the file name
- 2 bytes file content length
- the file contents
Archives are terminated either by the end of file, or a record with a name length of zero.