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

Method putVarintBytes

prep_encoder.go:84–91  ·  view source on GitHub ↗
(in []byte)

Source from the content-addressed store, hash-verified

82}
83
84func (pe *prepEncoder) putVarintBytes(in []byte) error {
85 if in == nil {
86 pe.putVarint(-1)
87 return nil
88 }
89 pe.putVarint(int64(len(in)))
90 return pe.putRawBytes(in)
91}
92
93func (pe *prepEncoder) putRawBytes(in []byte) error {
94 if len(in) > math.MaxInt32 {

Callers

nothing calls this directly

Calls 2

putVarintMethod · 0.95
putRawBytesMethod · 0.95

Tested by

no test coverage detected