| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame] | 1 | // Code generated by "stringer -type=BlockSize,CompressionLevel -output options_gen.go"; DO NOT EDIT. |
| 2 | |
| 3 | package lz4 |
| 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[Block64Kb-65536] |
| 12 | _ = x[Block256Kb-262144] |
| 13 | _ = x[Block1Mb-1048576] |
| 14 | _ = x[Block4Mb-4194304] |
| 15 | } |
| 16 | |
| 17 | const ( |
| 18 | _BlockSize_name_0 = "Block64Kb" |
| 19 | _BlockSize_name_1 = "Block256Kb" |
| 20 | _BlockSize_name_2 = "Block1Mb" |
| 21 | _BlockSize_name_3 = "Block4Mb" |
| 22 | ) |
| 23 | |
| 24 | func (i BlockSize) String() string { |
| 25 | switch { |
| 26 | case i == 65536: |
| 27 | return _BlockSize_name_0 |
| 28 | case i == 262144: |
| 29 | return _BlockSize_name_1 |
| 30 | case i == 1048576: |
| 31 | return _BlockSize_name_2 |
| 32 | case i == 4194304: |
| 33 | return _BlockSize_name_3 |
| 34 | default: |
| 35 | return "BlockSize(" + strconv.FormatInt(int64(i), 10) + ")" |
| 36 | } |
| 37 | } |
| 38 | func _() { |
| 39 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 40 | // Re-run the stringer command to generate them again. |
| 41 | var x [1]struct{} |
| 42 | _ = x[Fast-0] |
| 43 | _ = x[Level1-512] |
| 44 | _ = x[Level2-1024] |
| 45 | _ = x[Level3-2048] |
| 46 | _ = x[Level4-4096] |
| 47 | _ = x[Level5-8192] |
| 48 | _ = x[Level6-16384] |
| 49 | _ = x[Level7-32768] |
| 50 | _ = x[Level8-65536] |
| 51 | _ = x[Level9-131072] |
| 52 | } |
| 53 | |
| 54 | const ( |
| 55 | _CompressionLevel_name_0 = "Fast" |
| 56 | _CompressionLevel_name_1 = "Level1" |
| 57 | _CompressionLevel_name_2 = "Level2" |
| 58 | _CompressionLevel_name_3 = "Level3" |
| 59 | _CompressionLevel_name_4 = "Level4" |
| 60 | _CompressionLevel_name_5 = "Level5" |
| 61 | _CompressionLevel_name_6 = "Level6" |
| 62 | _CompressionLevel_name_7 = "Level7" |
| 63 | _CompressionLevel_name_8 = "Level8" |
| 64 | _CompressionLevel_name_9 = "Level9" |
| 65 | ) |
| 66 | |
| 67 | func (i CompressionLevel) String() string { |
| 68 | switch { |
| 69 | case i == 0: |
| 70 | return _CompressionLevel_name_0 |
| 71 | case i == 512: |
| 72 | return _CompressionLevel_name_1 |
| 73 | case i == 1024: |
| 74 | return _CompressionLevel_name_2 |
| 75 | case i == 2048: |
| 76 | return _CompressionLevel_name_3 |
| 77 | case i == 4096: |
| 78 | return _CompressionLevel_name_4 |
| 79 | case i == 8192: |
| 80 | return _CompressionLevel_name_5 |
| 81 | case i == 16384: |
| 82 | return _CompressionLevel_name_6 |
| 83 | case i == 32768: |
| 84 | return _CompressionLevel_name_7 |
| 85 | case i == 65536: |
| 86 | return _CompressionLevel_name_8 |
| 87 | case i == 131072: |
| 88 | return _CompressionLevel_name_9 |
| 89 | default: |
| 90 | return "CompressionLevel(" + strconv.FormatInt(int64(i), 10) + ")" |
| 91 | } |
| 92 | } |