MCPcopy Create free account
hub / github.com/segmentio/encoding / encodeTag

Function encodeTag

proto/encode.go:136–138  ·  view source on GitHub ↗
(b []byte, f fieldNumber, t wireType)

Source from the content-addressed store, hash-verified

134}
135
136func encodeTag(b []byte, f fieldNumber, t wireType) (int, error) {
137 return encodeVarint(b, uint64(f)<<3|uint64(t))
138}

Callers 6

BenchmarkDecodeTagFunction · 0.85
BenchmarkEncodeTagFunction · 0.85
mapEncodeFuncOfFunction · 0.85
structEncodeFuncOfFunction · 0.85
sliceEncodeFuncOfFunction · 0.85
TestEncodeDecodeTagFunction · 0.85

Calls 1

encodeVarintFunction · 0.85

Tested by 3

BenchmarkDecodeTagFunction · 0.68
BenchmarkEncodeTagFunction · 0.68
TestEncodeDecodeTagFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…