MCPcopy
hub / github.com/segmentio/kafka-go / varBytesLen

Function varBytesLen

write.go:577–579  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

575}
576
577func varBytesLen(b []byte) int {
578 return varIntLen(int64(len(b))) + len(b)
579}
580
581func varStringLen(s string) int {
582 return varIntLen(int64(len(s))) + len(s)

Callers 2

headerSizeMethod · 0.85
recordSizeFunction · 0.85

Calls 1

varIntLenFunction · 0.85

Tested by

no test coverage detected