Snex.Serde (Snex v0.2.0)

View Source

Serialization and deserialization between Elixir and Python.

See the Snex module documentation for more detail.

Summary

Functions

Wraps an iodata value for efficient out-of-band passing to Python.

Wraps an arbitrary Erlang term for efficient out-of-band passing to Python. The value will be opaque on the Python side and decoded back to the original Erlang term when returned to Elixir.

Types

serde_binary()

@opaque serde_binary()

serde_term()

@opaque serde_term()

Functions

binary(value)

@spec binary(iodata()) :: serde_binary()

Wraps an iodata value for efficient out-of-band passing to Python.

term(value)

@spec term(term()) :: serde_term()

Wraps an arbitrary Erlang term for efficient out-of-band passing to Python. The value will be opaque on the Python side and decoded back to the original Erlang term when returned to Elixir.