nar is simple archive format which contains only basic information about archived file(s) like file mode, owner information, etc.
Archive contains 4 bytes of magic value (NARnew line character) on beginning,
and next every file contains:
| Bytes | Description |
|---|---|
| 8 | File size |
| 2 | File mode |
| 4 | Owner's ID |
| 4 | Owner's Group ID |
| 4 | File name length |
| Length + 1 | File name (NULL terminated) |
| File size | File content |
| 1 | End of file confirmation byte |
For now, nar is in early stage, even not alpha, so don't even
try to use it in production stage.
Things to do:
Clone: git clone git://git.kocotian.pl/nar.git
Stagit webpage: https://git.kocotian.pl/nar