| Abhay Kumar | 40252eb | 2025-10-13 13:25:53 +0000 | [diff] [blame] | 1 | // Code generated by "stringer -type=aState -output state_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[noState-0] |
| 12 | _ = x[errorState-1] |
| 13 | _ = x[newState-2] |
| 14 | _ = x[readState-3] |
| 15 | _ = x[writeState-4] |
| 16 | _ = x[closedState-5] |
| 17 | } |
| 18 | |
| 19 | const _aState_name = "noStateerrorStatenewStatereadStatewriteStateclosedState" |
| 20 | |
| 21 | var _aState_index = [...]uint8{0, 7, 17, 25, 34, 44, 55} |
| 22 | |
| 23 | func (i aState) String() string { |
| 24 | if i >= aState(len(_aState_index)-1) { |
| 25 | return "aState(" + strconv.FormatInt(int64(i), 10) + ")" |
| 26 | } |
| 27 | return _aState_name[_aState_index[i]:_aState_index[i+1]] |
| 28 | } |