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

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

Link to this section Summary

Types

t()

XDR.HyperInt structure type specification.

Functions

Decode the Hyper Integer in XDR format to a XDR.HyperInt structure.

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

Encode a XDR.HyperInt structure into a XDR format.

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

Create a new XDR.HyperInt structure with the datum passed.

Link to this section Types

Specs

datum() :: integer() | binary()

Specs

t() :: %XDR.HyperInt{datum: datum()}

XDR.HyperInt structure type specification.

Link to this section Functions

Link to this function

decode_xdr(bytes, h_int \\ nil)

View Source

Decode the Hyper Integer in XDR format to a XDR.HyperInt structure.

Link to this function

decode_xdr!(bytes, h_int \\ nil)

View Source

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

Encode a XDR.HyperInt structure into a XDR format.

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

Specs

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

Create a new XDR.HyperInt structure with the datum passed.