File: lobtypecode_string.go

package info (click to toggle)
golang-github-sap-go-hdb 0.100.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 800 kB
  • sloc: python: 27; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 721 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
// Code generated by "stringer -type=lobTypecode"; DO NOT EDIT.

package protocol

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[ltcUndefined-0]
	_ = x[ltcBlob-1]
	_ = x[ltcClob-2]
	_ = x[ltcNclob-3]
}

const _lobTypecode_name = "ltcUndefinedltcBlobltcClobltcNclob"

var _lobTypecode_index = [...]uint8{0, 12, 19, 26, 34}

func (i lobTypecode) String() string {
	if i < 0 || i >= lobTypecode(len(_lobTypecode_index)-1) {
		return "lobTypecode(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _lobTypecode_name[_lobTypecode_index[i]:_lobTypecode_index[i+1]]
}