Elixir XDR v0.1.5 XDR.VariableArray View Source
This module manages the Variable-Length Array
type based on the RFC4506 XDR Standard.
Link to this section Summary
Types
XDR.VariableArray
structure type specification.
Functions
Decode the Variable-Length Array in XDR format to a XDR.VariableArray
structure.
Decode the Variable-Length Array in XDR format to a XDR.VariableArray
structure.
If the binaries are not valid, an exception is raised.
Encode a XDR.VariableArray
structure into a XDR format.
Encode a XDR.VariableArray
structure into a XDR format.
If the variable_array
is not valid, an exception is raised.
Create a new XDR.VariableArray
structure with the elements
, type
and max_length
passed.
Link to this section Types
Specs
XDR.VariableArray
structure type specification.
Link to this section Functions
Specs
decode_xdr(bytes :: binary(), struct :: t()) :: {:ok, {list(), binary()}} | {:error, :not_number | :exceed_lower_bound | :exceed_upper_bound | :invalid_length | :invalid_binary | :not_binary}
Decode the Variable-Length Array in XDR format to a XDR.VariableArray
structure.
Specs
Decode the Variable-Length Array in XDR format to a XDR.VariableArray
structure.
If the binaries are not valid, an exception is raised.
Specs
encode_xdr(variable_array :: t()) :: {:ok, binary()} | {:error, :not_number | :exceed_lower_bound | :exceed_upper_bound | :not_list | :length_over_max}
Encode a XDR.VariableArray
structure into a XDR format.
Specs
Encode a XDR.VariableArray
structure into a XDR format.
If the variable_array
is not valid, an exception is raised.
Specs
Create a new XDR.VariableArray
structure with the elements
, type
and max_length
passed.