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

Method putString

prep_encoder.go:213–218  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

211}
212
213func (pe *prepFlexibleEncoder) putString(in string) error {
214 if err := pe.putArrayLength(len(in)); err != nil {
215 return err
216 }
217 return pe.putRawBytes([]byte(in))
218}
219
220func (pe *prepFlexibleEncoder) putNullableString(in *string) error {
221 if in == nil {

Callers 2

putNullableStringMethod · 0.95
putStringArrayMethod · 0.95

Calls 2

putArrayLengthMethod · 0.95
putRawBytesMethod · 0.65

Tested by

no test coverage detected