NewEncoder returns a new encoder that writes to out in the given byte order.
(out io.Writer, order binary.ByteOrder, fds []int)
| 19 | |
| 20 | // NewEncoder returns a new encoder that writes to out in the given byte order. |
| 21 | func newEncoder(out io.Writer, order binary.ByteOrder, fds []int) *encoder { |
| 22 | enc := newEncoderAtOffset(out, 0, order, fds) |
| 23 | return enc |
| 24 | } |
| 25 | |
| 26 | // newEncoderAtOffset returns a new encoder that writes to out in the given |
| 27 | // byte order. Specify the offset to initialize pos for proper alignment |
searching dependent graphs…