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

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

Link to this section Summary

Types

t()

XDR.HyperUInt structure type specification.

Functions

Decode the Unsigned Hyper Integer in XDR format to a XDR.HyperUInt structure.

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

Encode a XDR.HyperUInt structure into a XDR format.

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

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

Link to this section Types

Specs

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

Specs

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

XDR.HyperUInt structure type specification.

Link to this section Functions

Link to this function

decode_xdr(bytes, h_uint \\ nil)

View Source

Decode the Unsigned Hyper Integer in XDR format to a XDR.HyperUInt structure.

Link to this function

decode_xdr!(bytes, h_uint \\ nil)

View Source

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

Encode a XDR.HyperUInt structure into a XDR format.

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

Specs

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

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