Packages

ProtoDef compiler for Elixir. (mostly) Compatible with https://github.com/ProtoDef-io/ProtoDef.

Current section

Files

Jump to
proto_def lib gen elixir impl void.ex
Raw

lib/gen/elixir/impl/void.ex

defimpl ProtoDef.Gen.Elixir.Protocol, for: ProtoDef.Type.Void do
@data_var ProtoDef.Type.data_var
@input_var ProtoDef.Type.input_var
def decoder(descr, ctx) do
quote do
{nil, unquote(@data_var)}
end
end
def encoder(descr, ctx) do
quote do
<<>>
end
end
end