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

Method putStringArray

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

putArrayLengthMethod · 0.95
putStringMethod · 0.95

Tested by

no test coverage detected