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

Method readFrom

saslhandshake.go:45–53  ·  view source on GitHub ↗
(r *bufio.Reader, sz int)

Source from the content-addressed store, hash-verified

43}
44
45func (t *saslHandshakeResponseV0) readFrom(r *bufio.Reader, sz int) (remain int, err error) {
46 if remain, err = readInt16(r, sz, &t.ErrorCode); err != nil {
47 return
48 }
49 if remain, err = readStringArray(r, remain, &t.EnabledMechanisms); err != nil {
50 return
51 }
52 return
53}

Callers

nothing calls this directly

Calls 2

readStringArrayFunction · 0.85
readInt16Function · 0.70

Tested by

no test coverage detected