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

This module manages the Structure type based on the RFC4506 XDR Standard.

Link to this section Summary

Types

t()

XDR.Struct structure type specification.

Functions

Decode the Structure in XDR format to a XDR.Struct structure.

Decode the Structure in XDR format to a XDR.Struct structure. If the binaries are not valid, an exception is raised.

Encode a XDR.Struct structure into a XDR format.

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

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

Link to this section Types

Specs

t() :: %XDR.Struct{components: keyword()}

XDR.Struct structure type specification.

Link to this section Functions

Decode the Structure in XDR format to a XDR.Struct structure.

Link to this function

decode_xdr!(bytes, struct)

View Source

Decode the Structure in XDR format to a XDR.Struct structure. If the binaries are not valid, an exception is raised.

Encode a XDR.Struct structure into a XDR format.

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

Specs

new(components :: keyword()) :: t()

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