Encode writes the UlReq encoding of u to the stream. All the payloads will end with a newline character. Wants and shallows are sorted alphabetically. A depth of 0 means no depth request is sent.
(w io.Writer)
| 16 | // shallows are sorted alphabetically. A depth of 0 means no depth |
| 17 | // request is sent. |
| 18 | func (req *UploadRequest) Encode(w io.Writer) error { |
| 19 | e := newUlReqEncoder(w) |
| 20 | return e.Encode(req) |
| 21 | } |
| 22 | |
| 23 | type ulReqEncoder struct { |
| 24 | pe *pktline.Encoder // where to write the encoded data |
nothing calls this directly
no test coverage detected