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

Method writeTo

saslauthenticate.go:37–41  ·  view source on GitHub ↗
(wb *writeBuffer)

Source from the content-addressed store, hash-verified

35}
36
37func (t saslAuthenticateResponseV0) writeTo(wb *writeBuffer) {
38 wb.writeInt16(t.ErrorCode)
39 wb.writeString(t.ErrorMessage)
40 wb.writeBytes(t.Data)
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 {

Callers 1

Calls 3

writeInt16Method · 0.45
writeStringMethod · 0.45
writeBytesMethod · 0.45

Tested by 1