abbel/tlv/type_string.go

36 lines
930 B
Go

// Code generated by "stringer -type=Type -trimprefix Type"; DO NOT EDIT.
package tlv
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[TypePad1-0]
_ = x[TypePadN-1]
_ = x[TypeAckReq-2]
_ = x[TypeAck-3]
_ = x[TypeHello-4]
_ = x[TypeIHU-5]
_ = x[TypeRouterID-6]
_ = x[TypeNextHop-7]
_ = x[TypeUpdate-8]
_ = x[TypeRouteRequest-9]
_ = x[TypeSeqnoRequest-10]
_ = x[TypeTSPC-11]
_ = x[TypeHMAC-12]
}
const _Type_name = "Pad1PadNAckReqAckHelloIHURouterIDNextHopUpdateRouteRequestSeqnoRequestTSPCHMAC"
var _Type_index = [...]uint8{0, 4, 8, 14, 17, 22, 25, 33, 40, 46, 58, 70, 74, 78}
func (i Type) String() string {
if i >= Type(len(_Type_index)-1) {
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Type_name[_Type_index[i]:_Type_index[i+1]]
}