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

Method putNullableInt32Array

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

Source from the content-addressed store, hash-verified

252}
253
254func (pe *prepFlexibleEncoder) putNullableInt32Array(in []int32) error {
255 if in == nil {
256 pe.putUVarint(0)
257 return nil
258 }
259
260 pe.putUVarint(uint64(len(in)) + 1)
261 pe.length += 4 * len(in)
262 return nil
263}
264
265func (pe *prepFlexibleEncoder) putInt64Array(in []int64) error {
266 pe.putUVarint(uint64(len(in)) + 1)

Callers

nothing calls this directly

Calls 1

putUVarintMethod · 0.65

Tested by

no test coverage detected