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

Method readFrom

saslauthenticate.go:43–54  ·  view source on GitHub ↗
(r *bufio.Reader, sz int)

Source from the content-addressed store, hash-verified

41}
42
43func (t *saslAuthenticateResponseV0) readFrom(r *bufio.Reader, sz int) (remain int, err error) {
44 if remain, err = readInt16(r, sz, &t.ErrorCode); err != nil {
45 return
46 }
47 if remain, err = readString(r, remain, &t.ErrorMessage); err != nil {
48 return
49 }
50 if remain, err = readBytes(r, remain, &t.Data); err != nil {
51 return
52 }
53 return
54}

Callers

nothing calls this directly

Calls 3

readStringFunction · 0.85
readBytesFunction · 0.85
readInt16Function · 0.70

Tested by

no test coverage detected