in aggregationpb/aggregation_vtproto.pb.go [1942:1973]
func (m *HDRHistogram) SizeVT() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.LowestTrackableValue != 0 {
n += 1 + protohelpers.SizeOfVarint(uint64(m.LowestTrackableValue))
}
if m.HighestTrackableValue != 0 {
n += 1 + protohelpers.SizeOfVarint(uint64(m.HighestTrackableValue))
}
if m.SignificantFigures != 0 {
n += 1 + protohelpers.SizeOfVarint(uint64(m.SignificantFigures))
}
if len(m.Counts) > 0 {
l = 0
for _, e := range m.Counts {
l += protohelpers.SizeOfVarint(uint64(e))
}
n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l
}
if len(m.Buckets) > 0 {
l = 0
for _, e := range m.Buckets {
l += protohelpers.SizeOfVarint(uint64(e))
}
n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l
}
n += len(m.unknownFields)
return n
}