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

Function decodeTag

proto/decode.go:77–80  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

75}
76
77func decodeTag(b []byte) (f fieldNumber, t wireType, n int, err error) {
78 v, n, err := decodeVarint(b)
79 return fieldNumber(v >> 3), wireType(v & 7), n, err
80}
81
82func decodeVarlen(b []byte) ([]byte, int, error) {
83 v, n, err := decodeVarint(b)

Callers 3

BenchmarkDecodeTagFunction · 0.85
structDecodeFuncOfFunction · 0.85
TestEncodeDecodeTagFunction · 0.85

Calls 3

decodeVarintFunction · 0.85
fieldNumberTypeAlias · 0.85
wireTypeTypeAlias · 0.85

Tested by 2

BenchmarkDecodeTagFunction · 0.68
TestEncodeDecodeTagFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…