Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length.
(dst []byte)
| 111 | |
| 112 | // Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length. |
| 113 | func (src *ErrorResponse) Encode(dst []byte) ([]byte, error) { |
| 114 | dst, sp := beginMessage(dst, 'E') |
| 115 | dst = src.appendFields(dst) |
| 116 | return finishMessage(dst, sp) |
| 117 | } |
| 118 | |
| 119 | func (src *ErrorResponse) appendFields(dst []byte) []byte { |
| 120 | if src.Severity != "" { |
nothing calls this directly
no test coverage detected