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

Method putStringArray

real_encoder.go:234–247  ·  view source on GitHub ↗
(in []string)

Source from the content-addressed store, hash-verified

232}
233
234func (re *realFlexibleEncoder) putStringArray(in []string) error {
235 err := re.putArrayLength(len(in))
236 if err != nil {
237 return err
238 }
239
240 for _, val := range in {
241 if err := re.putString(val); err != nil {
242 return err
243 }
244 }
245
246 return nil
247}
248
249func (re *realFlexibleEncoder) putInt32Array(in []int32) error {
250 if in == nil {

Callers

nothing calls this directly

Calls 2

putArrayLengthMethod · 0.95
putStringMethod · 0.95

Tested by

no test coverage detected