MCPcopy Create free account
hub / github.com/davecgh/go-xdr / encode

Method encode

xdr/encode.go:540–610  ·  view source on GitHub ↗

encode is the main workhorse for marshalling via reflection. It uses the passed reflection value to choose the XDR primitives to encode into the data field of the Encoder. It is a recursive function, so cyclic data structures are not supported and will result in an infinite loop.

(v reflect.Value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

MarshalFunction · 0.95
encodeFixedArrayMethod · 0.95
encodeArrayMethod · 0.95
encodeStructMethod · 0.95
encodeMapMethod · 0.95
encodeInterfaceMethod · 0.95

Calls 15

indirectMethod · 0.95
EncodeStringMethod · 0.95
EncodeIntMethod · 0.95
EncodeHyperMethod · 0.95
EncodeUintMethod · 0.95
EncodeUhyperMethod · 0.95
EncodeBoolMethod · 0.95
EncodeFloatMethod · 0.95
EncodeDoubleMethod · 0.95
encodeFixedArrayMethod · 0.95
encodeArrayMethod · 0.95
encodeStructMethod · 0.95

Tested by

no test coverage detected