defmodule XDR.OptionalString do @behaviour XDR.Declaration defstruct type: nil def new(type), do: %XDR.OptionalString{type: type} defdelegate encode_xdr(type), to: XDR.Optional defdelegate encode_xdr!(type), to: XDR.Optional def decode_xdr(bytes, struct \\ %{type: XDR.String}) def decode_xdr(bytes, struct), do: XDR.Optional.decode_xdr(bytes, struct) def decode_xdr!(bytes, struct \\ %{type: XDR.String}) def decode_xdr!(bytes, struct), do: XDR.Optional.decode_xdr!(bytes, struct) end
There was an error while loading. Please reload this page.