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

Method writeBytes

write.go:73–80  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

71}
72
73func (wb *writeBuffer) writeBytes(b []byte) {
74 n := len(b)
75 if b == nil {
76 n = -1
77 }
78 wb.writeInt32(int32(n))
79 wb.Write(b)
80}
81
82func (wb *writeBuffer) writeVarBytes(b []byte) {
83 if b != nil {

Callers 2

writeMethod · 0.95
writeMessageMethod · 0.95

Calls 2

writeInt32Method · 0.95
WriteMethod · 0.95

Tested by

no test coverage detected