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

Method putStringArray

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

Source from the content-addressed store, hash-verified

121}
122
123func (pe *prepEncoder) putStringArray(in []string) error {
124 err := pe.putArrayLength(len(in))
125 if err != nil {
126 return err
127 }
128
129 for _, str := range in {
130 if err := pe.putString(str); err != nil {
131 return err
132 }
133 }
134
135 return nil
136}
137
138func (pe *prepEncoder) putInt32Array(in []int32) error {
139 err := pe.putArrayLength(len(in))

Callers

nothing calls this directly

Calls 2

putArrayLengthMethod · 0.95
putStringMethod · 0.95

Tested by

no test coverage detected