MCPcopy Create free account
hub / github.com/godbus/dbus / binwrite

Method binwrite

encoder.go:62–66  ·  view source on GitHub ↗

Calls binary.Write(enc.out, enc.order, v) and panics on write errors.

(v any)

Source from the content-addressed store, hash-verified

60
61// Calls binary.Write(enc.out, enc.order, v) and panics on write errors.
62func (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.

Callers 1

encodeMethod · 0.95

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected