blob: 01a01e486e1886a322e8b7c2ac5dba21f732a383 [file] [log] [blame]
khenaidood948f772021-08-11 17:49:24 -04001// Code generated by "stringer -type=blockType,literalsBlockType,seqCompMode,tableIndex"; DO NOT EDIT.
2
3package zstd
4
5import "strconv"
6
7func _() {
8 // An "invalid array index" compiler error signifies that the constant values have changed.
9 // Re-run the stringer command to generate them again.
10 var x [1]struct{}
11 _ = x[blockTypeRaw-0]
12 _ = x[blockTypeRLE-1]
13 _ = x[blockTypeCompressed-2]
14 _ = x[blockTypeReserved-3]
15}
16
17const _blockType_name = "blockTypeRawblockTypeRLEblockTypeCompressedblockTypeReserved"
18
19var _blockType_index = [...]uint8{0, 12, 24, 43, 60}
20
21func (i blockType) String() string {
22 if i >= blockType(len(_blockType_index)-1) {
23 return "blockType(" + strconv.FormatInt(int64(i), 10) + ")"
24 }
25 return _blockType_name[_blockType_index[i]:_blockType_index[i+1]]
26}
27func _() {
28 // An "invalid array index" compiler error signifies that the constant values have changed.
29 // Re-run the stringer command to generate them again.
30 var x [1]struct{}
31 _ = x[literalsBlockRaw-0]
32 _ = x[literalsBlockRLE-1]
33 _ = x[literalsBlockCompressed-2]
34 _ = x[literalsBlockTreeless-3]
35}
36
37const _literalsBlockType_name = "literalsBlockRawliteralsBlockRLEliteralsBlockCompressedliteralsBlockTreeless"
38
39var _literalsBlockType_index = [...]uint8{0, 16, 32, 55, 76}
40
41func (i literalsBlockType) String() string {
42 if i >= literalsBlockType(len(_literalsBlockType_index)-1) {
43 return "literalsBlockType(" + strconv.FormatInt(int64(i), 10) + ")"
44 }
45 return _literalsBlockType_name[_literalsBlockType_index[i]:_literalsBlockType_index[i+1]]
46}
47func _() {
48 // An "invalid array index" compiler error signifies that the constant values have changed.
49 // Re-run the stringer command to generate them again.
50 var x [1]struct{}
51 _ = x[compModePredefined-0]
52 _ = x[compModeRLE-1]
53 _ = x[compModeFSE-2]
54 _ = x[compModeRepeat-3]
55}
56
57const _seqCompMode_name = "compModePredefinedcompModeRLEcompModeFSEcompModeRepeat"
58
59var _seqCompMode_index = [...]uint8{0, 18, 29, 40, 54}
60
61func (i seqCompMode) String() string {
62 if i >= seqCompMode(len(_seqCompMode_index)-1) {
63 return "seqCompMode(" + strconv.FormatInt(int64(i), 10) + ")"
64 }
65 return _seqCompMode_name[_seqCompMode_index[i]:_seqCompMode_index[i+1]]
66}
67func _() {
68 // An "invalid array index" compiler error signifies that the constant values have changed.
69 // Re-run the stringer command to generate them again.
70 var x [1]struct{}
71 _ = x[tableLiteralLengths-0]
72 _ = x[tableOffsets-1]
73 _ = x[tableMatchLengths-2]
74}
75
76const _tableIndex_name = "tableLiteralLengthstableOffsetstableMatchLengths"
77
78var _tableIndex_index = [...]uint8{0, 19, 31, 48}
79
80func (i tableIndex) String() string {
81 if i >= tableIndex(len(_tableIndex_index)-1) {
82 return "tableIndex(" + strconv.FormatInt(int64(i), 10) + ")"
83 }
84 return _tableIndex_name[_tableIndex_index[i]:_tableIndex_index[i+1]]
85}