MCPcopy
hub / github.com/protocolbuffers/protobuf-go / EnumRanges

Struct EnumRanges

internal/filedesc/desc_list.go:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68type EnumRanges struct {
69 List [][2]protoreflect.EnumNumber // start inclusive; end inclusive
70 once sync.Once
71 sorted [][2]protoreflect.EnumNumber // protected by once
72}
73
74func (p *EnumRanges) Len() int { return len(p.List) }
75func (p *EnumRanges) Get(i int) [2]protoreflect.EnumNumber { return p.List[i] }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected