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

Method Reset

decoder.go:35–44  ·  view source on GitHub ↗

Reset resets the decoder to be reading from in.

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

Source from the content-addressed store, hash-verified

33
34// Reset resets the decoder to be reading from in.
35func (dec *decoder) Reset(in io.Reader, order binary.ByteOrder, fds []int) {
36 dec.in = in
37 dec.order = order
38 dec.pos = 0
39 dec.fds = fds
40
41 if dec.conv == nil {
42 dec.conv = newStringConverter(stringConverterBufferSize)
43 }
44}
45
46// align aligns the input to the given boundary and panics on error.
47func (dec *decoder) align(n int) {

Callers 4

formatMethod · 0.80
ReadMessageMethod · 0.80
TestProtoFunction · 0.80

Calls 1

newStringConverterFunction · 0.85

Tested by 2

TestProtoFunction · 0.64