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

Method writeInt8

crc32.go:18–21  ·  view source on GitHub ↗
(i int8)

Source from the content-addressed store, hash-verified

16}
17
18func (w *crc32Writer) writeInt8(i int8) {
19 w.buffer[0] = byte(i)
20 w.update(w.buffer[:1])
21}
22
23func (w *crc32Writer) writeInt16(i int16) {
24 binary.BigEndian.PutUint16(w.buffer[:2], uint16(i))

Callers 5

bytesMethod · 0.45
bytesMethod · 0.45
bytesMethod · 0.45
crc32Method · 0.45
writeToMethod · 0.45

Calls 1

updateMethod · 0.95

Tested by 3

bytesMethod · 0.36
bytesMethod · 0.36
bytesMethod · 0.36