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

Method writeVarNullBytes

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

Source from the content-addressed store, hash-verified

293}
294
295func (e *encoder) writeVarNullBytes(b []byte) {
296 if b == nil {
297 e.writeVarInt(-1)
298 } else {
299 e.writeVarInt(int64(len(b)))
300 e.Write(b)
301 }
302}
303
304func (e *encoder) writeCompactNullBytes(b []byte) {
305 if b == nil {

Callers 1

writeToVersion2Method · 0.95

Calls 2

writeVarIntMethod · 0.95
WriteMethod · 0.95

Tested by

no test coverage detected