newEncoderAtOffset returns a new encoder that writes to out in the given byte order. Specify the offset to initialize pos for proper alignment computation.
(out io.Writer, offset int, order binary.ByteOrder, fds []int)
| 27 | // byte order. Specify the offset to initialize pos for proper alignment |
| 28 | // computation. |
| 29 | func newEncoderAtOffset(out io.Writer, offset int, order binary.ByteOrder, fds []int) *encoder { |
| 30 | enc := new(encoder) |
| 31 | enc.out = out |
| 32 | enc.order = order |
| 33 | enc.pos = offset |
| 34 | enc.fds = fds |
| 35 | return enc |
| 36 | } |
| 37 | |
| 38 | // Aligns the next output to be on a multiple of n. Panics on write errors. |
| 39 | func (enc *encoder) align(n int) { |
no outgoing calls
no test coverage detected
searching dependent graphs…