Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ writeInt32
Method
writeInt32
write.go:27–30 ·
view source on GitHub ↗
(i int32)
Source
from the content-addressed store, hash-verified
25
}
26
27
func
(wb *writeBuffer) writeInt32(i int32) {
28
binary.BigEndian.PutUint32(wb.b[:4], uint32(i))
29
wb.Write(wb.b[:4])
30
}
31
32
func
(wb *writeBuffer) writeInt64(i int64) {
33
binary.BigEndian.PutUint64(wb.b[:8], uint64(i))
Callers
14
TestReadMapStringInt32
Function · 0.95
writeBytes
Method · 0.95
writeArrayLen
Method · 0.95
writeInt32Array
Method · 0.95
write
Method · 0.95
writeFetchRequestV2
Method · 0.95
writeFetchRequestV5
Method · 0.95
writeFetchRequestV10
Method · 0.95
writeListOffsetRequestV1
Method · 0.95
writeProduceRequestV2
Method · 0.95
writeProduceRequestV3
Method · 0.95
writeProduceRequestV7
Method · 0.95
Calls
1
Write
Method · 0.95
Tested by
1
TestReadMapStringInt32
Function · 0.76