]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
changed enccoding type order : raw, rle, compressed, repeat-stats
authorYann Collet <yann.collet.73@gmail.com>
Sat, 23 Jul 2016 13:52:05 +0000 (15:52 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 23 Jul 2016 13:52:05 +0000 (15:52 +0200)
lib/common/zstd_internal.h
zstd_compression_format.md

index 43cbc9a3a3e0776522b3f955281bc485ea3653c9..f51def2b867d90bed615a3d0af719ebb5b19083e 100644 (file)
@@ -88,7 +88,7 @@ static const size_t ZSTD_did_fieldSize[4] = { 0, 1, 2, 4 };
 
 #define ZSTD_BLOCKHEADERSIZE 3   /* C standard doesn't allow `static const` variable to be init using another `static const` variable */
 static const size_t ZSTD_blockHeaderSize = ZSTD_BLOCKHEADERSIZE;
-typedef enum { bt_compressed, bt_raw, bt_rle, bt_end } blockType_t;
+typedef enum { bt_raw, bt_rle, bt_compressed, bt_end } blockType_t;
 
 #define MIN_SEQUENCES_SIZE 1 /* nbSeq==0 */
 #define MIN_CBLOCK_SIZE (1 /*litCSize*/ + 1 /* RLE or RAW */ + MIN_SEQUENCES_SIZE /* nbSeq==0 */)   /* for a non-null block */
index 42fe3e0c4905ecd1bdb3cddd02ce8f5b99df8c7b..7112fa15292431f548017c7c5a6cde4c33cf7057 100644 (file)
@@ -324,9 +324,9 @@ while the remaining 22 bits represent the (compressed) block size.
 
 There are 4 block types :
 
-|    Value   |      0     |  1  |  2  |    3    |
-| ---------- | ---------- | --- | --- | ------- |
-| Block Type | Compressed | Raw | RLE | EndMark |
+|    Value   |  0  |  1  |      2     |    3    |
+| ---------- | --- | --- | ---------- | ------- |
+| Block Type | Raw | RLE | Compressed | EndMark |
 
 - Compressed : this is a [Zstandard compressed block](#compressed-block-format),
   detailed in another section of this specification.