XDR.Declaration behaviour (Elixir XDR v0.3.11) View Source

Behaviour definition for the types declared based on RFC4506 XDR standard.

Link to this section Summary

Callbacks

Encode XDR for any type returns a tuple with the converted value.

Decode XDR for any type returns the resulted converted value.

Encode XDR for any type returns a tuple with the resulted binary value.

Encode XDR for any type returns the resulted binary value.

Link to this section Callbacks

Link to this callback

decode_xdr(binary, term)

View Source

Specs

decode_xdr(binary(), term()) :: {:ok, {term(), binary()}} | {:error, atom()}

Encode XDR for any type returns a tuple with the converted value.

Link to this callback

decode_xdr!(binary, term)

View Source

Specs

decode_xdr!(binary(), term()) :: {term(), binary()} | no_return()

Decode XDR for any type returns the resulted converted value.

Specs

encode_xdr(struct()) :: {:ok, binary()} | {:error, atom()}

Encode XDR for any type returns a tuple with the resulted binary value.

Specs

encode_xdr!(struct()) :: binary() | no_return()

Encode XDR for any type returns the resulted binary value.