xz: add a comment about using uint32_t as vli_type
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Feb 2013 15:32:03 +0000 (16:32 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Feb 2013 15:32:03 +0000 (16:32 +0100)
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/unxz/xz_stream.h

index 2ffaa34eac1283686d80f5ddeccc380171809db2..66cb5a7055ec83298de08e625902e1e229c9ce42 100644 (file)
 #define FOOTER_MAGIC_SIZE 2
 
 /*
- * Variable-length integer can hold a 63-bit unsigned integer, or a special
- * value to indicate that the value is unknown.
+ * Variable-length integer can hold a 63-bit unsigned integer or a special
+ * value indicating that the value is unknown.
+ *
+ * Experimental: vli_type can be defined to uint32_t to save a few bytes
+ * in code size (no effect on speed). Doing so limits the uncompressed and
+ * compressed size of the file to less than 256 MiB and may also weaken
+ * error detection slightly.
  */
 typedef uint64_t vli_type;