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

Method putNullableInt32Array

real_encoder.go:150–163  ·  view source on GitHub ↗
(in []int32)

Source from the content-addressed store, hash-verified

148}
149
150func (re *realEncoder) putNullableInt32Array(in []int32) error {
151 if in == nil {
152 re.putInt32(-1)
153 return nil
154 }
155 err := re.putArrayLength(len(in))
156 if err != nil {
157 return err
158 }
159 for _, val := range in {
160 re.putInt32(val)
161 }
162 return nil
163}
164
165func (re *realEncoder) putInt64Array(in []int64) error {
166 err := re.putArrayLength(len(in))

Callers

nothing calls this directly

Calls 2

putInt32Method · 0.95
putArrayLengthMethod · 0.95

Tested by

no test coverage detected