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

Method putNullableInt32Array

prep_encoder.go:147–158  ·  view source on GitHub ↗
(in []int32)

Source from the content-addressed store, hash-verified

145}
146
147func (pe *prepEncoder) putNullableInt32Array(in []int32) error {
148 if in == nil {
149 pe.length += 4
150 return nil
151 }
152 err := pe.putArrayLength(len(in))
153 if err != nil {
154 return err
155 }
156 pe.length += 4 * len(in)
157 return nil
158}
159
160func (pe *prepEncoder) putInt64Array(in []int64) error {
161 err := pe.putArrayLength(len(in))

Callers

nothing calls this directly

Calls 1

putArrayLengthMethod · 0.95

Tested by

no test coverage detected