Pbuf.Decoder (pbuf v0.1.16)

Link to this section Summary

Link to this section Functions

Link to this function

decode(mod, data)

Specs

decode(module(), iodata()) :: {:ok, any()} | {:error, any()}
Link to this function

decode!(mod, data)

Specs

decode!(module(), iodata()) :: any()
Link to this function

enum_field(mod, name, acc, data)

Specs

enum_field(module(), atom(), Keyword.t(), binary()) :: {Keyword.t(), binary()}
Link to this function

field(mod, data)

Specs

field(atom(), binary()) :: {any(), binary()}
Link to this function

field(type, name, acc, data)

Specs

field(atom(), atom(), Keyword.t(), binary()) :: {Keyword.t(), binary()}
Link to this function

map_field(kp, kt, kd, vp, vt, vd, name, acc, data)

Specs

map_field(
  byte(),
  atom(),
  any(),
  byte(),
  atom(),
  any(),
  atom(),
  Keyword.t(),
  binary()
) :: {Keyword.t(), binary()} | {:error, Pbuf.Decoder.Error.t()}
Link to this function

oneof_field(name, arg2, arg, fun)

Specs

oneof_field(atom(), number(), {Keyword.t(), binary()}, (... -> any()) | nil) ::
  {Keyword.t(), binary()}
Link to this function

repeated_enum_field(mod, name, acc, data)

Specs

repeated_enum_field(atom(), atom(), Keyword.t(), binary()) ::
  {Keyword.t(), binary()}
Link to this function

repeated_field(type, name, acc, data)

Specs

repeated_field(atom(), atom(), Keyword.t(), binary()) :: {Keyword.t(), binary()}
Link to this function

repeated_unpacked_field(type, name, acc, data)

Link to this function

skip(int, data)

Specs

skip(non_neg_integer(), binary()) :: binary()
Link to this function

struct_field(mod, name, acc, data)

Specs

struct_field(atom(), atom(), Keyword.t(), binary()) ::
  {Keyword.t(), binary()} | {:error, any()}

Specs

varint(binary()) :: {integer(), binary()}

Specs

zigzag(integer()) :: integer()