xdr v0.1.1 XDR.Type.HyperUint View Source

RFC 4506, Section 4.5 - Unsigned Hyper Integer

Link to this section Summary

Types

t()

Hyper unsigned integer between 0 and 2^64 - 1

Functions

Decodes a 8-byte binary into a hyper unsigned integer

Encodes a hyper unsigned integer into an 8-byte binary

Determines if a value is a valid 8-byte hyper unsigned integer

Link to this section Types

Link to this type t() View Source
t() :: 0..18446744073709551615

Hyper unsigned integer between 0 and 2^64 - 1

Link to this type xdr() View Source
xdr() :: <<_::_*64>>

Link to this section Functions

Link to this function decode(xdr) View Source
decode(xdr :: xdr()) ::
  {:ok, {hyper_uint :: t(), rest :: XDR.Type.Base.xdr()}} |
  {:error, :invalid}

Decodes a 8-byte binary into a hyper unsigned integer

Link to this function encode(hyper_uint) View Source
encode(hyper_uint :: t()) ::
  {:ok, xdr :: xdr()} |
  {:error, :invalid | :out_of_bounds}

Encodes a hyper unsigned integer into an 8-byte binary

Link to this function valid?(hyper_uint) View Source
valid?(hyper_uint :: t()) :: boolean()

Determines if a value is a valid 8-byte hyper unsigned integer