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

Function encodeVarintPartitionRingDesc

ring/partition_ring_desc.pb.go:736–746  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

734}
735
736func encodeVarintPartitionRingDesc(dAtA []byte, offset int, v uint64) int {
737 offset -= sovPartitionRingDesc(v)
738 base := offset
739 for v >= 1<<7 {
740 dAtA[offset] = uint8(v&0x7f | 0x80)
741 v >>= 7
742 offset++
743 }
744 dAtA[offset] = uint8(v)
745 return base
746}
747func (m *PartitionRingDesc) Size() (n int) {
748 if m == nil {
749 return 0

Callers 3

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovPartitionRingDescFunction · 0.85

Tested by

no test coverage detected