MCPcopy Create free account
hub / github.com/IBM/sarama / putNullableString

Method putNullableString

real_encoder.go:116–122  ·  view source on GitHub ↗
(in *string)

Source from the content-addressed store, hash-verified

114}
115
116func (re *realEncoder) putNullableString(in *string) error {
117 if in == nil {
118 re.putInt16(-1)
119 return nil
120 }
121 return re.putString(*in)
122}
123
124func (re *realEncoder) putStringArray(in []string) error {
125 err := re.putArrayLength(len(in))

Callers

nothing calls this directly

Calls 2

putInt16Method · 0.95
putStringMethod · 0.95

Tested by

no test coverage detected