Elixir XDR v0.1.4 XDR.Optional View Source
This module manages the Optional-Data
type based on the RFC4506 XDR Standard.
Link to this section Summary
Types
XDR.Optional
structure type specification.
Functions
Decode the Optional-Data in XDR format to a XDR.Optional
structure.
Decode the Optional-Data in XDR format to a XDR.Optional
structure.
If the binaries are not valid, an exception is raised.
Encode a XDR.Optional
structure into a XDR format.
Encode a XDR.Optional
structure into a XDR format.
If the optional
is not valid, an exception is raised.
Create a new XDR.Optional
structure with the type
passed.
Link to this section Types
Specs
t() :: %XDR.Optional{type: nil | any()}
XDR.Optional
structure type specification.
Link to this section Functions
Specs
decode_xdr(bytes :: binary(), optional :: t() | map()) :: {:ok, {t(), binary()}} | {:error, :not_binary | :not_module}
Decode the Optional-Data in XDR format to a XDR.Optional
structure.
Specs
Decode the Optional-Data in XDR format to a XDR.Optional
structure.
If the binaries are not valid, an exception is raised.
Specs
Encode a XDR.Optional
structure into a XDR format.
Specs
Encode a XDR.Optional
structure into a XDR format.
If the optional
is not valid, an exception is raised.
Specs
Create a new XDR.Optional
structure with the type
passed.