Stellar v0.3.0 Stellar.XDR.Types.Transaction.CreatePassiveOfferOp View Source

Link to this section Summary

Functions

Decodes an XDR binary to a native type, also returns any un-decoded binary

Encodes a native type to an XDR binary

Returns the expected length (in bytes) of an XDR-encoded binary of this type (sans padding)

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

Determines if a value is a valid XDR type

Link to this section Types

Link to this section Functions

Link to this function decode(xdr) View Source
decode(xdr :: xdr()) ::
  {:ok, {val :: t(), rest :: XDR.Type.Base.xdr()}}
  | {:error, reason :: :invalid}

Decodes an XDR binary to a native type, also returns any un-decoded binary

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

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

Encodes a native type to an XDR binary

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

Returns the expected length (in bytes) of an XDR-encoded binary of this type (sans padding)

Callback implementation for XDR.Type.Base.length/0.

Link to this function new(val) View Source
new(val :: t()) :: {:ok, val :: t()} | {:error, reason :: :invalid}

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?(val) View Source
valid?(val :: t()) :: boolean()

Determines if a value is a valid XDR type

Callback implementation for XDR.Type.Base.valid?/1.