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

Signed 32-bit integer

Link to this section Summary

Functions

Pull a raw integer out of the given binary, returning the value and remaining binary in a tuple

Encode an integer or %XDR.Type.Int{} struct

Link to this section Types

Link to this type

encoding()

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

t()

View Source
t() :: %XDR.Type.Int{type_name: String.t(), value: value()}
Link to this type

value()

View Source
value() :: -2_147_483_648..2_147_483_647

Link to this section Functions

Link to this function

decode!(arg1)

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

Pull a raw integer out of the given binary, returning the value and remaining binary in a tuple

Link to this function

encode(value)

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

Encode an integer or %XDR.Type.Int{} struct