github.com/bir3/gocompiler@v0.9.2202/extra/compress/zstd/blocktype_string.go (about) 1 // Code generated by "stringer -type=blockType,literalsBlockType,seqCompMode,tableIndex"; DO NOT EDIT. 2 3 package zstd 4 5 import "strconv" 6 7 func _() { 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 17 const _blockType_name = "blockTypeRawblockTypeRLEblockTypeCompressedblockTypeReserved" 18 19 var _blockType_index = [...]uint8{0, 12, 24, 43, 60} 20 21 func (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 } 27 func _() { 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 37 const _literalsBlockType_name = "literalsBlockRawliteralsBlockRLEliteralsBlockCompressedliteralsBlockTreeless" 38 39 var _literalsBlockType_index = [...]uint8{0, 16, 32, 55, 76} 40 41 func (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 } 47 func _() { 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 57 const _seqCompMode_name = "compModePredefinedcompModeRLEcompModeFSEcompModeRepeat" 58 59 var _seqCompMode_index = [...]uint8{0, 18, 29, 40, 54} 60 61 func (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 } 67 func _() { 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 76 const _tableIndex_name = "tableLiteralLengthstableOffsetstableMatchLengths" 77 78 var _tableIndex_index = [...]uint8{0, 19, 31, 48} 79 80 func (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 }