MCPcopy
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
7func sizeOfVarString(s string) int {
8 return sizeOfVarInt(int64(len(s))) + len(s)
9}
10
11func sizeOfVarNullBytes(b []byte) int {
12 if b == nil {

Callers 1

writeToVersion2Method · 0.85

Calls 1

sizeOfVarIntFunction · 0.85

Tested by

no test coverage detected