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

Function packUint32

protocol/record.go:346–349  ·  view source on GitHub ↗
(u uint32)

Source from the content-addressed store, hash-verified

344}
345
346func packUint32(u uint32) (b [4]byte) {
347 binary.BigEndian.PutUint32(b[:], u)
348 return
349}
350
351func packUint64(u uint64) (b [8]byte) {
352 binary.BigEndian.PutUint64(b[:], u)

Callers 5

WriteToMethod · 0.85
writeToVersion1Method · 0.85
WriteRequestFunction · 0.85
writeToVersion2Method · 0.85
WriteResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected