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

Function newEncoder

encoder.go:21–24  ·  view source on GitHub ↗

NewEncoder returns a new encoder that writes to out in the given byte order.

(out io.Writer, order binary.ByteOrder, fds []int)

Source from the content-addressed store, hash-verified

19
20// NewEncoder returns a new encoder that writes to out in the given byte order.
21func 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

Callers 15

CountFdsMethod · 0.85
EncodeToWithFDsMethod · 0.85
TestEncodeArrayOfMapsFunction · 0.85
TestEncodeSliceInterfaceFunction · 0.85
TestEncodeIntFunction · 0.85

Calls 1

newEncoderAtOffsetFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…