XDR.FixedArray (Elixir XDR v0.3.10) View Source

This module manages the Fixed-Length Array type based on the RFC4506 XDR Standard.

Link to this section Summary

Types

t()

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

elements() :: [integer() | String.t() | struct()] | nil

Specs

t() :: %XDR.FixedArray{elements: elements(), length: integer(), type: module()}

XDR.FixedArray structure type specification.

Link to this section Functions

Decode the Fixed-Length Array in XDR format to a XDR.FixedArray structure.

Link to this function

decode_xdr!(bytes, fixed_array)

View Source

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.

Link to this function

encode_xdr!(fixed_array)

View Source

Encode a XDR.FixedArray structure into a XDR format. If the fixed_array is not valid, an exception is raised.

Link to this function

new(elements, type, length)

View Source

Specs

new(elements :: elements(), type :: module(), length :: integer()) :: t()

Create a new XDR.FixedArray structure with the elements, type and length passed.