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

Method writeInt64

write.go:32–35  ·  view source on GitHub ↗
(i int64)

Source from the content-addressed store, hash-verified

30}
31
32func (wb *writeBuffer) writeInt64(i int64) {
33 binary.BigEndian.PutUint64(wb.b[:8], uint64(i))
34 wb.Write(wb.b[:8])
35}
36
37func (wb *writeBuffer) writeVarInt(i int64) {
38 u := uint64((i << 1) ^ (i >> 63))

Callers 7

writeMethod · 0.95
writeFetchRequestV2Method · 0.95
writeFetchRequestV5Method · 0.95
writeFetchRequestV10Method · 0.95
writeRecordBatchMethod · 0.95
writeMessageMethod · 0.95

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected