MCPcopy
hub / github.com/segmentio/kafka-go / writeCompactBytes

Method writeCompactBytes

protocol/encode.go:281–284  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

279}
280
281func (e *encoder) writeCompactBytes(b []byte) {
282 e.writeUnsignedVarInt(uint64(len(b)) + 1)
283 e.Write(b)
284}
285
286func (e *encoder) writeNullBytes(b []byte) {
287 if b == nil {

Callers 1

encodeCompactBytesMethod · 0.95

Calls 2

writeUnsignedVarIntMethod · 0.95
WriteMethod · 0.95

Tested by

no test coverage detected