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

Function readInt16

read.go:29–31  ·  view source on GitHub ↗
(r *bufio.Reader, sz int, v *int16)

Source from the content-addressed store, hash-verified

27}
28
29func readInt16(r *bufio.Reader, sz int, v *int16) (int, error) {
30 return peekRead(r, sz, 2, func(b []byte) { *v = makeInt16(b) })
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) })

Callers 15

readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
decodeMemberMetadataFunction · 0.70
decodeMemberAssignmentsFunction · 0.70
readInt16Method · 0.70
ApiVersionsMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70
readFromMethod · 0.70

Calls 2

peekReadFunction · 0.85
makeInt16Function · 0.85

Tested by

no test coverage detected