File format
An archive produced by the star
program is called a starfile.
The following table describes the standard starfile
format.
Total bytes | Byte Value | Meaning |
---|---|---|
16 | \x73\x20\x74\x20\x61\x20 |
s t a r 1\x00*16 (file magic) |
8 | \xCA\xFE\xCA\xFE |
Beginning of file list |
n | filename{*&*}filehash{:\x00:} filename{*&*}filehash{:\x00:}... |
File list separated by {:\x00:} |
8 | \xBA\xBE\xBA\xBE |
End of the file list |
24 | \x53\x20\x54\x20\x41\x20 |
Beginning of file (S T A R B E G I N \ \ &$) |
n | file contents | The contents of the file |
24 | \x53\x20\x54\x20\x41\x20 |
End of file (S T A R E N D O F \ \ &$) |
n | {begin file hex}{file contents} {end of file hex} |
Basic layout for file contents. Repeats for every file in the archive. |
16 | \x65\x20\x73\x20\x74\x20 |
End of star file |
If you are interested in reading more about the file specification, go check out the whitepaper.