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

Method putRawBytes

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

Source from the content-addressed store, hash-verified

91}
92
93func (pe *prepEncoder) putRawBytes(in []byte) error {
94 if len(in) > math.MaxInt32 {
95 return PacketEncodingError{fmt.Sprintf("byteslice too long (%d)", len(in))}
96 }
97 pe.length += len(in)
98 return nil
99}
100
101func (pe *prepEncoder) putUuid(in Uuid) error {
102 pe.length += 16

Callers 2

putBytesMethod · 0.95
putVarintBytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected