Source File
options_gen.go
Belonging Package
github.com/pierrec/lz4/v4
// Code generated by "stringer -type=BlockSize,CompressionLevel -output options_gen.go"; DO NOT EDIT.package lz4importfunc _() {// An "invalid array index" compiler error signifies that the constant values have changed.// Re-run the stringer command to generate them again.var [1]struct{}_ = [Block64Kb-65536]_ = [Block256Kb-262144]_ = [Block1Mb-1048576]_ = [Block4Mb-4194304]}const (_BlockSize_name_0 = "Block64Kb"_BlockSize_name_1 = "Block256Kb"_BlockSize_name_2 = "Block1Mb"_BlockSize_name_3 = "Block4Mb")func ( BlockSize) () string {switch {case == 65536:return _BlockSize_name_0case == 262144:return _BlockSize_name_1case == 1048576:return _BlockSize_name_2case == 4194304:return _BlockSize_name_3default:return "BlockSize(" + strconv.FormatInt(int64(), 10) + ")"}}func _() {// An "invalid array index" compiler error signifies that the constant values have changed.// Re-run the stringer command to generate them again.var [1]struct{}_ = [Fast-0]_ = [Level1-512]_ = [Level2-1024]_ = [Level3-2048]_ = [Level4-4096]_ = [Level5-8192]_ = [Level6-16384]_ = [Level7-32768]_ = [Level8-65536]_ = [Level9-131072]}const (_CompressionLevel_name_0 = "Fast"_CompressionLevel_name_1 = "Level1"_CompressionLevel_name_2 = "Level2"_CompressionLevel_name_3 = "Level3"_CompressionLevel_name_4 = "Level4"_CompressionLevel_name_5 = "Level5"_CompressionLevel_name_6 = "Level6"_CompressionLevel_name_7 = "Level7"_CompressionLevel_name_8 = "Level8"_CompressionLevel_name_9 = "Level9")func ( CompressionLevel) () string {switch {case == 0:return _CompressionLevel_name_0case == 512:return _CompressionLevel_name_1case == 1024:return _CompressionLevel_name_2case == 2048:return _CompressionLevel_name_3case == 4096:return _CompressionLevel_name_4case == 8192:return _CompressionLevel_name_5case == 16384:return _CompressionLevel_name_6case == 32768:return _CompressionLevel_name_7case == 65536:return _CompressionLevel_name_8case == 131072:return _CompressionLevel_name_9default:return "CompressionLevel(" + strconv.FormatInt(int64(), 10) + ")"}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |