package
0.0.0-20180726165426-f4c839f75077
Repository: https://github.com/nullstyle/go-xdr.git
Documentation: pkg.go.dev

# Functions

Marshal returns the XDR encoding of v.
NewDecoder returns a Decoder that can be used to manually decode XDR data from a provided byte slice.
NewEncoder returns an object that can be used to manually build an XDR encoded byte slice.
Unmarshal parses XDR-encoded data into the value pointed to by v.

# Constants

ErrBadArguments indicates arguments passed to the function are not what was expected.
ErrBadEnumValue indicates an enumeration value is not in the list of valid values.
ErrNilInterface indicates an interface with no concrete type information was encountered.
ErrNotSettable indicates an interface value cannot be written to.
ErrOverflow indicates that the data in question is too large to fit into the corresponding Go or XDR data type.
ErrUnexpectedEnd indicates the end of a sequence of bytes was encountered before it was expected.
ErrUnsupportedType indicates the Go type is not a supported type for marshalling and unmarshalling XDR data.

# Structs

A Decoder contains information about the state of a decode operation from an XDR-encoded byte slice into interface values and provides several exposed methods to manually decode various XDR primitives without relying on reflection.
An Encoder contains information about the state of an encode operation from an interface value into an XDR-encoded byte slice.
MarshalError describes a problem encountered while marshaling data.
UnmarshalError describes a problem encountered while unmarshaling data.

# Type aliases

ErrorCode identifies a kind of error.