xdr v0.1.1 XDR.Type.DoubleFloat View Source

RFC 4506, Section 4.7 - Double-precision Floating Point

Link to this section Summary

Types

t()

Double-precision float

Functions

Decodes an 8-byte binary into an double-precision float

Encodes a double-precision float or integer into an 8-byte binary

Determines if a value is a valid 8-byte float or integer

Link to this section Types

Double-precision float

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, {float :: t(), rest :: XDR.Type.Base.xdr()}} |
  {:error, :invalid | :out_of_bounds}

Decodes an 8-byte binary into an double-precision float

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

Encodes a double-precision float or integer into an 8-byte binary

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

Determines if a value is a valid 8-byte float or integer