Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ writeCompactString
Method
writeCompactString
protocol/encode.go:253–256 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
251
}
252
253
func
(e *encoder) writeCompactString(s string) {
254
e.writeUnsignedVarInt(uint64(len(s)) + 1)
255
e.WriteString(s)
256
}
257
258
func
(e *encoder) writeNullString(s string) {
259
if
s ==
""
{
Callers
1
encodeCompactString
Method · 0.95
Calls
2
writeUnsignedVarInt
Method · 0.95
WriteString
Method · 0.95
Tested by
no test coverage detected