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

Method encode

xdr2/encode.go:553–622  ·  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 encapsulated writer and returns the number of bytes written. It is a recursive function, so cyclic data structures are not supported and will result in a

(v reflect.Value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

encodeFixedArrayMethod · 0.95
encodeStructMethod · 0.95
encodeMapMethod · 0.95
encodeInterfaceMethod · 0.95
EncodeMethod · 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