]> git.seodisparate.com - SimpleArchiver/commitdiff
Update file_format.md
authorStephen Seo <seo.disparate@gmail.com>
Thu, 4 Jul 2024 04:10:22 +0000 (13:10 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 4 Jul 2024 04:10:22 +0000 (13:10 +0900)
Resolves #11 .

file_format.md

index b8ceb5059dc5b1b2a36e53ed7b47eb407f32f477..cdeff7ffd24eaaa72cb0ae98debe24be29ea4cb8 100644 (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).