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

Function readInt32

read.go:33–35  ·  view source on GitHub ↗
(r *bufio.Reader, sz int, v *int32)

Source from the content-addressed store, hash-verified

31}
32
33func readInt32(r *bufio.Reader, sz int, v *int32) (int, error) {
34 return peekRead(r, sz, 4, func(b []byte) { *v = makeInt32(b) })
35}
36
37func readInt64(r *bufio.Reader, sz int, v *int64) (int, error) {
38 return peekRead(r, sz, 8, func(b []byte) { *v = makeInt64(b) })

Callers 15

readFromMethod · 0.70
readInt32ArrayFunction · 0.70
readInt32Method · 0.70
extractOffsetFunction · 0.70
ApiVersionsMethod · 0.70
saslAuthenticateMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readArrayLenFunction · 0.70
readArrayWithFunction · 0.70

Calls 2

peekReadFunction · 0.85
makeInt32Function · 0.85

Tested by

no test coverage detected