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