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

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

Link to this section Summary

Types

t()

XDR.Int structure type specification.

Functions

Decode the Integer in XDR format to a XDR.Int structure.

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

Encode a XDR.Int structure into a XDR format.

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

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

Link to this section Types

Specs

t() :: %XDR.Int{datum: integer()}

XDR.Int structure type specification.

Link to this section Functions

Link to this function

decode_xdr(bytes, int \\ nil)

View Source

Decode the Integer in XDR format to a XDR.Int structure.

Link to this function

decode_xdr!(bytes, int \\ nil)

View Source

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

Encode a XDR.Int structure into a XDR format.

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

Specs

new(datum :: integer()) :: t()

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