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

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

Link to this section Summary

Types

t()

XDR.UInt structure type specification.

Functions

Decode the Unsigned Integer in XDR format to a XDR.UInt structure.

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

Encode a XDR.UInt structure into a XDR format.

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

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

Link to this section Types

Specs

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

Specs

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

XDR.UInt structure type specification.

Link to this section Functions

Link to this function

decode_xdr(bytes, u_int \\ nil)

View Source

Decode the Unsigned Integer in XDR format to a XDR.UInt structure.

Link to this function

decode_xdr!(bytes, u_int \\ nil)

View Source

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

Encode a XDR.UInt structure into a XDR format.

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

Specs

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

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