state_gen.go 749 B

12345678910111213141516171819202122232425262728
  1. // Code generated by "stringer -type=aState -output state_gen.go"; DO NOT EDIT.
  2. package lz4
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[noState-0]
  9. _ = x[errorState-1]
  10. _ = x[newState-2]
  11. _ = x[readState-3]
  12. _ = x[writeState-4]
  13. _ = x[closedState-5]
  14. }
  15. const _aState_name = "noStateerrorStatenewStatereadStatewriteStateclosedState"
  16. var _aState_index = [...]uint8{0, 7, 17, 25, 34, 44, 55}
  17. func (i aState) String() string {
  18. if i >= aState(len(_aState_index)-1) {
  19. return "aState(" + strconv.FormatInt(int64(i), 10) + ")"
  20. }
  21. return _aState_name[_aState_index[i]:_aState_index[i+1]]
  22. }