abbel/tlv/tlv_string.go

36 lines
849 B
Go

// Code generated by "stringer -type=TLV"; 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[Pad1-0]
_ = x[PadN-1]
_ = x[AckReq-2]
_ = x[Ack-3]
_ = x[Hello-4]
_ = x[IHU-5]
_ = x[RouterID-6]
_ = x[NextHop-7]
_ = x[Update-8]
_ = x[RouteRequest-9]
_ = x[RouteUpdate-10]
_ = x[TSPC-11]
_ = x[HMAC-12]
}
const _TLV_name = "Pad1PadNAckReqAckHelloIHURouterIDNextHopUpdateRouteRequestRouteUpdateTSPCHMAC"
var _TLV_index = [...]uint8{0, 4, 8, 14, 17, 22, 25, 33, 40, 46, 58, 69, 73, 77}
func (i TLV) String() string {
if i >= TLV(len(_TLV_index)-1) {
return "TLV(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _TLV_name[_TLV_index[i]:_TLV_index[i+1]]
}