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

Function DecodeTag

proto/decode.go:11–13  ·  view source on GitHub ↗

DecodeTag reverses the encoding applied by EncodeTag.

(tag uint64)

Source from the content-addressed store, hash-verified

9
10// DecodeTag reverses the encoding applied by EncodeTag.
11func DecodeTag(tag uint64) (FieldNumber, WireType) {
12 return FieldNumber(tag >> 3), WireType(tag & 7)
13}
14
15// DecodeZigZag reverses the encoding applied by EncodeZigZag.
16func DecodeZigZag(v uint64) int64 {

Callers 1

ParseFunction · 0.85

Calls 2

FieldNumberTypeAlias · 0.85
WireTypeTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…