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

Method putStringArray

prep_encoder.go:229–242  ·  view source on GitHub ↗
(in []string)

Source from the content-addressed store, hash-verified

227}
228
229func (pe *prepFlexibleEncoder) putStringArray(in []string) error {
230 err := pe.putArrayLength(len(in))
231 if err != nil {
232 return err
233 }
234
235 for _, str := range in {
236 if err := pe.putString(str); err != nil {
237 return err
238 }
239 }
240
241 return nil
242}
243
244func (pe *prepFlexibleEncoder) putInt32Array(in []int32) error {
245 if in == nil {

Callers

nothing calls this directly

Calls 2

putArrayLengthMethod · 0.95
putStringMethod · 0.95

Tested by

no test coverage detected