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

Method writeString

write.go:55–58  ·  write.go::writeBuffer.writeString
(s string)

Source from the content-addressed store, hash-verified

53}
54
55func (wb *writeBuffer) writeString(s string) {
56 wb.writeInt16(int16(len(s)))
57 wb.WriteString(s)
58}
59
60func (wb *writeBuffer) writeVarString(s string) {
61 wb.writeVarInt(int64(len(s)))

Callers 15

TestReadMapStringInt32Function · 0.95
writeNullableStringMethod · 0.95
writeStringArrayMethod · 0.95
writeMethod · 0.95
writeFetchRequestV2Method · 0.95
writeFetchRequestV5Method · 0.95
writeFetchRequestV10Method · 0.95
writeProduceRequestV2Method · 0.95
writeProduceRequestV3Method · 0.95
writeProduceRequestV7Method · 0.95
writeToMethod · 0.45

Calls 2

writeInt16Method · 0.95
WriteStringMethod · 0.95

Tested by 2

TestReadMapStringInt32Function · 0.76
bytesMethod · 0.36