mirror of
https://github.com/go-gitea/gitea
synced 2024-09-19 18:26:04 +00:00
86 lines
2.7 KiB
Go
86 lines
2.7 KiB
Go
|
// Code generated by "stringer -type=blockType,literalsBlockType,seqCompMode,tableIndex"; DO NOT EDIT.
|
||
|
|
||
|
package zstd
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
func _() {
|
||
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||
|
// Re-run the stringer command to generate them again.
|
||
|
var x [1]struct{}
|
||
|
_ = x[blockTypeRaw-0]
|
||
|
_ = x[blockTypeRLE-1]
|
||
|
_ = x[blockTypeCompressed-2]
|
||
|
_ = x[blockTypeReserved-3]
|
||
|
}
|
||
|
|
||
|
const _blockType_name = "blockTypeRawblockTypeRLEblockTypeCompressedblockTypeReserved"
|
||
|
|
||
|
var _blockType_index = [...]uint8{0, 12, 24, 43, 60}
|
||
|
|
||
|
func (i blockType) String() string {
|
||
|
if i >= blockType(len(_blockType_index)-1) {
|
||
|
return "blockType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _blockType_name[_blockType_index[i]:_blockType_index[i+1]]
|
||
|
}
|
||
|
func _() {
|
||
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||
|
// Re-run the stringer command to generate them again.
|
||
|
var x [1]struct{}
|
||
|
_ = x[literalsBlockRaw-0]
|
||
|
_ = x[literalsBlockRLE-1]
|
||
|
_ = x[literalsBlockCompressed-2]
|
||
|
_ = x[literalsBlockTreeless-3]
|
||
|
}
|
||
|
|
||
|
const _literalsBlockType_name = "literalsBlockRawliteralsBlockRLEliteralsBlockCompressedliteralsBlockTreeless"
|
||
|
|
||
|
var _literalsBlockType_index = [...]uint8{0, 16, 32, 55, 76}
|
||
|
|
||
|
func (i literalsBlockType) String() string {
|
||
|
if i >= literalsBlockType(len(_literalsBlockType_index)-1) {
|
||
|
return "literalsBlockType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _literalsBlockType_name[_literalsBlockType_index[i]:_literalsBlockType_index[i+1]]
|
||
|
}
|
||
|
func _() {
|
||
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||
|
// Re-run the stringer command to generate them again.
|
||
|
var x [1]struct{}
|
||
|
_ = x[compModePredefined-0]
|
||
|
_ = x[compModeRLE-1]
|
||
|
_ = x[compModeFSE-2]
|
||
|
_ = x[compModeRepeat-3]
|
||
|
}
|
||
|
|
||
|
const _seqCompMode_name = "compModePredefinedcompModeRLEcompModeFSEcompModeRepeat"
|
||
|
|
||
|
var _seqCompMode_index = [...]uint8{0, 18, 29, 40, 54}
|
||
|
|
||
|
func (i seqCompMode) String() string {
|
||
|
if i >= seqCompMode(len(_seqCompMode_index)-1) {
|
||
|
return "seqCompMode(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _seqCompMode_name[_seqCompMode_index[i]:_seqCompMode_index[i+1]]
|
||
|
}
|
||
|
func _() {
|
||
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||
|
// Re-run the stringer command to generate them again.
|
||
|
var x [1]struct{}
|
||
|
_ = x[tableLiteralLengths-0]
|
||
|
_ = x[tableOffsets-1]
|
||
|
_ = x[tableMatchLengths-2]
|
||
|
}
|
||
|
|
||
|
const _tableIndex_name = "tableLiteralLengthstableOffsetstableMatchLengths"
|
||
|
|
||
|
var _tableIndex_index = [...]uint8{0, 19, 31, 48}
|
||
|
|
||
|
func (i tableIndex) String() string {
|
||
|
if i >= tableIndex(len(_tableIndex_index)-1) {
|
||
|
return "tableIndex(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _tableIndex_name[_tableIndex_index[i]:_tableIndex_index[i+1]]
|
||
|
}
|