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

Method EncodeEnum

xdr2/encode.go:150–157  ·  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, writes the XDR encoded representation of it to the encapsulated writer. It returns the number of bytes written. A MarshalError is returned if the enumeration val

(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