MCPcopy
hub / github.com/grafana/dskit / encodeVarintHttpgrpc

Function encodeVarintHttpgrpc

httpgrpc/httpgrpc.pb.go:621–631  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

619}
620
621func encodeVarintHttpgrpc(dAtA []byte, offset int, v uint64) int {
622 offset -= sovHttpgrpc(v)
623 base := offset
624 for v >= 1<<7 {
625 dAtA[offset] = uint8(v&0x7f | 0x80)
626 v >>= 7
627 offset++
628 }
629 dAtA[offset] = uint8(v)
630 return base
631}
632func (m *HTTPRequest) Size() (n int) {
633 if m == nil {
634 return 0

Callers 3

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovHttpgrpcFunction · 0.85

Tested by

no test coverage detected