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

Method writeNullableString

write.go:65–71  ·  view source on GitHub ↗
(s *string)

Source from the content-addressed store, hash-verified

63}
64
65func (wb *writeBuffer) writeNullableString(s *string) {
66 if s == nil {
67 wb.writeInt16(-1)
68 } else {
69 wb.writeString(*s)
70 }
71}
72
73func (wb *writeBuffer) writeBytes(b []byte) {
74 n := len(b)

Callers 2

writeProduceRequestV3Method · 0.95
writeProduceRequestV7Method · 0.95

Calls 2

writeInt16Method · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected