changed enccoding type order : raw, rle, compressed, repeat-stats
This commit is contained in:
@@ -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 */
|
#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;
|
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_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 */
|
#define MIN_CBLOCK_SIZE (1 /*litCSize*/ + 1 /* RLE or RAW */ + MIN_SEQUENCES_SIZE /* nbSeq==0 */) /* for a non-null block */
|
||||||
|
|||||||
@@ -324,9 +324,9 @@ while the remaining 22 bits represent the (compressed) block size.
|
|||||||
|
|
||||||
There are 4 block types :
|
There are 4 block types :
|
||||||
|
|
||||||
| Value | 0 | 1 | 2 | 3 |
|
| Value | 0 | 1 | 2 | 3 |
|
||||||
| ---------- | ---------- | --- | --- | ------- |
|
| ---------- | --- | --- | ---------- | ------- |
|
||||||
| Block Type | Compressed | Raw | RLE | EndMark |
|
| Block Type | Raw | RLE | Compressed | EndMark |
|
||||||
|
|
||||||
- Compressed : this is a [Zstandard compressed block](#compressed-block-format),
|
- Compressed : this is a [Zstandard compressed block](#compressed-block-format),
|
||||||
detailed in another section of this specification.
|
detailed in another section of this specification.
|
||||||
|
|||||||
Reference in New Issue
Block a user