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

Function newEncoderAtOffset

encoder.go:29–36  ·  view source on GitHub ↗

newEncoderAtOffset returns a new encoder that writes to out in the given byte order. Specify the offset to initialize pos for proper alignment computation.

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

Source from the content-addressed store, hash-verified

27// byte order. Specify the offset to initialize pos for proper alignment
28// computation.
29func newEncoderAtOffset(out io.Writer, offset int, order binary.ByteOrder, fds []int) *encoder {
30 enc := new(encoder)
31 enc.out = out
32 enc.order = order
33 enc.pos = offset
34 enc.fds = fds
35 return enc
36}
37
38// Aligns the next output to be on a multiple of n. Panics on write errors.
39func (enc *encoder) align(n int) {

Callers 2

newEncoderFunction · 0.85
encodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…