Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ sizeOfVarString
Function
sizeOfVarString
protocol/size.go:7–9 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
5
)
6
7
func
sizeOfVarString(s string) int {
8
return
sizeOfVarInt(int64(len(s))) + len(s)
9
}
10
11
func
sizeOfVarNullBytes(b []byte) int {
12
if
b == nil {
Callers
1
writeToVersion2
Method · 0.85
Calls
1
sizeOfVarInt
Function · 0.85
Tested by
no test coverage detected