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

Single-precision (32 bit) floating-point number

Link to this section Summary

Functions

Decode the first 4 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 4-byte binary

Link to this section Types

Link to this type

encoding()

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

t()

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

Link to this section Functions

Link to this function

decode!(arg1)

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

Decode the first 4 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 4-byte binary