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

Method writeBool

write.go:92–98  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

90}
91
92func (wb *writeBuffer) writeBool(b bool) {
93 v := int8(0)
94 if b {
95 v = 1
96 }
97 wb.writeInt8(v)
98}
99
100func (wb *writeBuffer) writeArrayLen(n int) {
101 wb.writeInt32(int32(n))

Callers 5

writeMethod · 0.95
writeToMethod · 0.80
writeToMethod · 0.80
writeToMethod · 0.80
writeToMethod · 0.80

Calls 1

writeInt8Method · 0.95

Tested by

no test coverage detected