View Source Borsh (Borsh v1.0.1)

Documentation for Borsh.

Link to this section Summary

Functions

Decodes binary data into Elixir struct. Returns tuple with a struct and the rest of bytes.

Encodes Elixir struct into binary data.

Link to this section Functions

Specs

decode(binary(), atom()) :: {struct(), binary()}

Decodes binary data into Elixir struct. Returns tuple with a struct and the rest of bytes.

Specs

encode(struct()) :: binary()

Encodes Elixir struct into binary data.