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

Method encodeStruct

xdr/encode.go:434–472  ·  view source on GitHub ↗

encodeStruct appends an XDR encoded representation of each value in the exported fields of the struct represented by the passed reflection value to the Encoder's data. Pointers are automatically indirected through arbitrary depth to encode the actual value pointed to. A MarshalError is returned if

(v reflect.Value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

encodeMethod · 0.95

Calls 4

indirectMethod · 0.95
encodeArrayMethod · 0.95
encodeFixedArrayMethod · 0.95
encodeMethod · 0.95

Tested by

no test coverage detected