Calls binary.Write(enc.out, enc.order, v) and panics on write errors.
(v any)
| 60 | |
| 61 | // Calls binary.Write(enc.out, enc.order, v) and panics on write errors. |
| 62 | func (enc *encoder) binwrite(v any) { |
| 63 | if err := binary.Write(enc.out, enc.order, v); err != nil { |
| 64 | panic(err) |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // Encode encodes the given values to the underlying reader. All written values |
| 69 | // are aligned properly as required by the D-Bus spec. |