Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
136
func
encodeTag(b []byte, f fieldNumber, t wireType) (int, error) {
137
return
encodeVarint(b, uint64(f)<<3|uint64(t))
138
}
Callers
6
BenchmarkDecodeTag
Function · 0.85
BenchmarkEncodeTag
Function · 0.85
mapEncodeFuncOf
Function · 0.85
structEncodeFuncOf
Function · 0.85
sliceEncodeFuncOf
Function · 0.85
TestEncodeDecodeTag
Function · 0.85
Calls
1
encodeVarint
Function · 0.85
Tested by
3
BenchmarkDecodeTag
Function · 0.68
BenchmarkEncodeTag
Function · 0.68
TestEncodeDecodeTag
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…