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

Method EncodeEnum

xdr/encode.go:165–171  ·  view source on GitHub ↗

EncodeEnum treats the passed 32-bit signed integer as an enumeration value and, if it is in the list of passed valid enumeration values, appends the XDR encoded representation of it to the Encoder's data. A MarshalError is returned if the enumeration value is not one of the provided valid values or

(v int32, validEnums map[int32]bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestEncoderFunction · 0.95

Calls 2

EncodeIntMethod · 0.95
marshalErrorFunction · 0.70

Tested by 1

TestEncoderFunction · 0.76