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

Method putNullableString

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

Source from the content-addressed store, hash-verified

104}
105
106func (pe *prepEncoder) putNullableString(in *string) error {
107 if in == nil {
108 pe.length += 2
109 return nil
110 }
111 return pe.putString(*in)
112}
113
114func (pe *prepEncoder) putString(in string) error {
115 pe.length += 2

Callers

nothing calls this directly

Calls 1

putStringMethod · 0.95

Tested by

no test coverage detected