MCPcopy
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
253func (e *encoder) writeCompactString(s string) {
254 e.writeUnsignedVarInt(uint64(len(s)) + 1)
255 e.WriteString(s)
256}
257
258func (e *encoder) writeNullString(s string) {
259 if s == "" {

Callers 1

encodeCompactStringMethod · 0.95

Calls 2

writeUnsignedVarIntMethod · 0.95
WriteStringMethod · 0.95

Tested by

no test coverage detected