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

Method writeString

protocol/encode.go:243–246  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

241}
242
243func (e *encoder) writeString(s string) {
244 e.writeInt16(int16(len(s)))
245 e.WriteString(s)
246}
247
248func (e *encoder) writeVarString(s string) {
249 e.writeVarInt(int64(len(s)))

Callers 2

WriteRequestFunction · 0.95
encodeStringMethod · 0.95

Calls 2

writeInt16Method · 0.95
WriteStringMethod · 0.95

Tested by

no test coverage detected