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

Method putArrayLength

prep_encoder.go:54–60  ·  view source on GitHub ↗
(in int)

Source from the content-addressed store, hash-verified

52}
53
54func (pe *prepEncoder) putArrayLength(in int) error {
55 if in > math.MaxInt32 {
56 return PacketEncodingError{fmt.Sprintf("array too long (%d)", in)}
57 }
58 pe.length += 4
59 return nil
60}
61
62func (pe *prepEncoder) putBool(in bool) {
63 pe.length++

Callers 4

putStringArrayMethod · 0.95
putInt32ArrayMethod · 0.95
putNullableInt32ArrayMethod · 0.95
putInt64ArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected