Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length.
(dst []byte)
| 31 | |
| 32 | // Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length. |
| 33 | func (src *CopyFail) Encode(dst []byte) ([]byte, error) { |
| 34 | dst, sp := beginMessage(dst, 'f') |
| 35 | dst = append(dst, src.Message...) |
| 36 | dst = append(dst, 0) |
| 37 | return finishMessage(dst, sp) |
| 38 | } |
| 39 | |
| 40 | // MarshalJSON implements encoding/json.Marshaler. |
| 41 | func (src CopyFail) MarshalJSON() ([]byte, error) { |
nothing calls this directly
no test coverage detected