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

Method putInt32Array

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

Source from the content-addressed store, hash-verified

242}
243
244func (pe *prepFlexibleEncoder) putInt32Array(in []int32) error {
245 if in == nil {
246 return errors.New("expected int32 array to be non null")
247 }
248
249 pe.putUVarint(uint64(len(in)) + 1)
250 pe.length += 4 * len(in)
251 return nil
252}
253
254func (pe *prepFlexibleEncoder) putNullableInt32Array(in []int32) error {
255 if in == nil {

Callers

nothing calls this directly

Calls 1

putUVarintMethod · 0.65

Tested by

no test coverage detected