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

Method writeInt8

write.go:17–20  ·  view source on GitHub ↗
(i int8)

Source from the content-addressed store, hash-verified

15}
16
17func (wb *writeBuffer) writeInt8(i int8) {
18 wb.b[0] = byte(i)
19 wb.Write(wb.b[:1])
20}
21
22func (wb *writeBuffer) writeInt16(i int16) {
23 binary.BigEndian.PutUint16(wb.b[:2], uint16(i))

Callers 7

writeBoolMethod · 0.95
writeMethod · 0.95
writeFetchRequestV5Method · 0.95
writeFetchRequestV10Method · 0.95
writeRecordBatchMethod · 0.95
writeMessageMethod · 0.95
writeRecordMethod · 0.95

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected