Elixir XDR v0.1.1 XDR.Type.Double View Source

Double-precision (32 bit) floating-point number

Link to this section Summary

Functions

Decode the first 8 bytes of the given binary as a single-precision float and return the value along with the reamining binary as a tuple

Encode the given float or %XDR.Type.Float{} as an 8-byte binary

Link to this section Types

Link to this type

encoding()

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

t()

View Source
t() :: %XDR.Type.Double{type_name: String.t(), value: value()}

Link to this section Functions

Link to this function

decode!(arg1)

View Source
decode!(<<_::64, _::_*8>>) :: {value(), binary()}

Decode the first 8 bytes of the given binary as a single-precision float and return the value along with the reamining binary as a tuple

Link to this function

encode(value)

View Source
encode(value() | t()) :: encoding()

Encode the given float or %XDR.Type.Float{} as an 8-byte binary