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

Method putNullableString

prep_encoder.go:220–227  ·  view source on GitHub ↗
(in *string)

Source from the content-addressed store, hash-verified

218}
219
220func (pe *prepFlexibleEncoder) putNullableString(in *string) error {
221 if in == nil {
222 pe.putUVarint(0)
223 return nil
224 } else {
225 return pe.putString(*in)
226 }
227}
228
229func (pe *prepFlexibleEncoder) putStringArray(in []string) error {
230 err := pe.putArrayLength(len(in))

Callers

nothing calls this directly

Calls 2

putStringMethod · 0.95
putUVarintMethod · 0.65

Tested by

no test coverage detected