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

Method putNullableInt32Array

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

Source from the content-addressed store, hash-verified

259}
260
261func (re *realFlexibleEncoder) putNullableInt32Array(in []int32) error {
262 if in == nil {
263 re.putUVarint(0)
264 return nil
265 }
266 // 0 represents a null array, so +1 has to be added
267 re.putUVarint(uint64(len(in)) + 1)
268 for _, val := range in {
269 re.putInt32(val)
270 }
271 return nil
272}
273
274func (re *realFlexibleEncoder) putInt64Array(in []int64) error {
275 // 0 represents a null array, so +1 has to be added

Callers

nothing calls this directly

Calls 2

putUVarintMethod · 0.65
putInt32Method · 0.65

Tested by

no test coverage detected