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

Function newDecoder

decoder.go:25–32  ·  view source on GitHub ↗

newDecoder returns a new decoder that reads values from in. The input is expected to be in the given byte order.

(in io.Reader, order binary.ByteOrder, fds []int)

Source from the content-addressed store, hash-verified

23// newDecoder returns a new decoder that reads values from in. The input is
24// expected to be in the given byte order.
25func newDecoder(in io.Reader, order binary.ByteOrder, fds []int) *decoder {
26 dec := new(decoder)
27 dec.in = in
28 dec.order = order
29 dec.fds = fds
30 dec.conv = newStringConverter(stringConverterBufferSize)
31 return dec
32}
33
34// Reset resets the decoder to be reading from in.
35func (dec *decoder) Reset(in io.Reader, order binary.ByteOrder, fds []int) {

Callers 15

DecodeMessageWithFDsFunction · 0.85
FuzzProtoFunction · 0.85
TestEncodeArrayOfMapsFunction · 0.85
TestEncodeSliceInterfaceFunction · 0.85
TestEncodeIntFunction · 0.85

Calls 1

newStringConverterFunction · 0.85

Tested by 15

FuzzProtoFunction · 0.68
TestEncodeArrayOfMapsFunction · 0.68
TestEncodeSliceInterfaceFunction · 0.68
TestEncodeIntFunction · 0.68
TestEncodeUintFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…