Update file_format.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s

Resolves #11 .
This commit is contained in:
Stephen Seo 2024-07-04 13:10:22 +09:00
parent 518ac3ebe1
commit 174d30a8b6

View file

@ -34,5 +34,17 @@ Following the file-count bytes, the following bytes are added for each file:
1. 2 bytes is 16-bit unsigned integer "filename length" in big-endian.
2. X bytes of filename (length defined by previous value).
3. 8 bytes 64-bit unsigned integer "size of filename in this archive file".
4. X bytes file data (length defined by previous value).
3. 4 bytes bit-flags
1. The first byte
1. The first bit is set if the file is a symbolic link.
2. The second byte.
1. Currently unused.
3. The third byte.
1. Currently unused.
4. The fourth byte.
1. Currently unused.
4. If this file is a symbolic link:
1. 2 bytes is 16-bit unsigned integer "link target path" in big-endian.
2. X bytes of link-target-path (length defined by previous value).
5. 8 bytes 64-bit unsigned integer "size of filename in this archive file".
6. X bytes file data (length defined by previous value).