File: state_gen.go

package info (click to toggle)
golang-github-pierrec-lz4 4.1.18-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, trixie
  • size: 89,368 kB
  • sloc: asm: 791; makefile: 6
file content (28 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by "stringer -type=aState -output state_gen.go"; DO NOT EDIT.

package lz4

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[noState-0]
	_ = x[errorState-1]
	_ = x[newState-2]
	_ = x[readState-3]
	_ = x[writeState-4]
	_ = x[closedState-5]
}

const _aState_name = "noStateerrorStatenewStatereadStatewriteStateclosedState"

var _aState_index = [...]uint8{0, 7, 17, 25, 34, 44, 55}

func (i aState) String() string {
	if i >= aState(len(_aState_index)-1) {
		return "aState(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _aState_name[_aState_index[i]:_aState_index[i+1]]
}