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

Method writeInt32

crc32.go:28–31  ·  view source on GitHub ↗
(i int32)

Source from the content-addressed store, hash-verified

26}
27
28func (w *crc32Writer) writeInt32(i int32) {
29 binary.BigEndian.PutUint32(w.buffer[:4], uint32(i))
30 w.update(w.buffer[:4])
31}
32
33func (w *crc32Writer) writeInt64(i int64) {
34 binary.BigEndian.PutUint64(w.buffer[:8], uint64(i))

Callers 15

writeBytesMethod · 0.95
writeRecordBatchMethod · 0.95
writeToMethod · 0.45
writeToMethod · 0.45
bytesMethod · 0.45
bytesMethod · 0.45
bytesMethod · 0.45
bytesMethod · 0.45
writeToMethod · 0.45
writeToMethod · 0.45
writeToMethod · 0.45
saslAuthenticateMethod · 0.45

Calls 1

updateMethod · 0.95

Tested by 4

bytesMethod · 0.36
bytesMethod · 0.36
bytesMethod · 0.36
bytesMethod · 0.36