MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / encodeVarintPb

Function encodeVarintPb

bitmap/pb.pb.go:10684–10694  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

10682}
10683
10684func encodeVarintPb(dAtA []byte, offset int, v uint64) int {
10685 offset -= sovPb(v)
10686 base := offset
10687 for v >= 1<<7 {
10688 dAtA[offset] = uint8(v&0x7f | 0x80)
10689 v >>= 7
10690 offset++
10691 }
10692 dAtA[offset] = uint8(v)
10693 return base
10694}
10695func (m *List) Size() (n int) {
10696 if m == nil {
10697 return 0

Callers 15

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovPbFunction · 0.85

Tested by

no test coverage detected