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