Encode encodes src into dst. dst will include the 4 byte message length.
(dst []byte)
| 31 | |
| 32 | // Encode encodes src into dst. dst will include the 4 byte message length. |
| 33 | func (src *SSLRequest) Encode(dst []byte) ([]byte, error) { |
| 34 | dst = pgio.AppendInt32(dst, 8) |
| 35 | dst = pgio.AppendInt32(dst, sslRequestNumber) |
| 36 | return dst, nil |
| 37 | } |
| 38 | |
| 39 | // MarshalJSON implements encoding/json.Marshaler. |
| 40 | func (src SSLRequest) MarshalJSON() ([]byte, error) { |
nothing calls this directly
no test coverage detected