xdr v0.1.2 XDR.Type.Void View Source

RFC 4506, Section 4.16 - Void

Link to this section Summary

Types

t()

Void type

Functions

Decodes an empty binary to nil

Encodes nil to an empty binary

Returns the input if it’s a valid XDR module native type, or the default valid native type

Determines if value is nil or not

Link to this section Types

Void type

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

Link to this section Functions

Link to this function decode(arg1) View Source
decode(xdr :: <<_::0>>) ::
  {:ok, {native :: t(), rest :: XDR.Type.Base.xdr()}} |
  {:error, :invalid}

Decodes an empty binary to nil

Link to this function encode(arg1) View Source
encode(t()) :: {:ok, <<_::0>>} | {:error, :invalid}

Encodes nil to an empty binary

Returns the input if it’s a valid XDR module native type, or the default valid native type

Callback implementation for XDR.Type.Base.new/1.

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

Determines if value is nil or not