Packages

The Elixir implementation of gRPC

Current section

Files

Jump to
grpc_update lib grpc codec erlpack.ex
Raw

lib/grpc/codec/erlpack.ex

defmodule GRPC.Codec.Erlpack do
@behaviour GRPC.Codec
def name() do
"erlpack"
end
def encode(struct) do
:erlang.term_to_binary(struct)
end
def decode(binary, _module) do
:erlang.binary_to_term(binary)
end
end