MeshxRpc.Protocol.Default.deserialize
You're seeing just the function
deserialize
, go back to MeshxRpc.Protocol.Default module for more information.
Specs
deserialize(bin :: binary(), opts :: Keyword.t(), serialization_flag :: 0..255) :: {:ok, result :: term()} | {:error, reason :: term()}
De-serializes given bin
to Erlang term with :erlang.binary_to_term/2
.
Function performs reverse operation to serialize/2
. If serialization_flag
is 0
de-serialization step is skipped and function returns {:ok, bin}
. Otherwise bin
is de-serialized using :erlang.binary_to_term/2
.
opts
is passed as second argument to :erlang.binary_to_term/2
. serialize/2
provides usage example.