XDR.FixedOpaque (Elixir XDR v0.3.11) View Source

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

Link to this section Summary

Types

t()

XDR.FixedOpaque structure type specification.

Functions

Decode the Fixed-Length Opaque Data in XDR format to a XDR.FixedOpaque structure.

Decode the Fixed-Length Array in XDR format to a XDR.FixedOpaque structure. If the binaries are not valid, an exception is raised.

Encode a XDR.FixedOpaque structure into a XDR format.

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

Create a new XDR.FixedOpaque structure with the opaque and length passed.

Link to this section Types

Specs

opaque() :: binary() | nil

Specs

t() :: %XDR.FixedOpaque{length: integer(), opaque: opaque()}

XDR.FixedOpaque structure type specification.

Link to this section Functions

Decode the Fixed-Length Opaque Data in XDR format to a XDR.FixedOpaque structure.

Link to this function

decode_xdr!(bytes, opaque)

View Source

Decode the Fixed-Length Array in XDR format to a XDR.FixedOpaque structure. If the binaries are not valid, an exception is raised.

Encode a XDR.FixedOpaque structure into a XDR format.

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

Specs

new(opaque :: opaque(), length :: integer()) :: t()

Create a new XDR.FixedOpaque structure with the opaque and length passed.