pbuf v0.1.11 Pbuf.Decoder

Link to this section Summary

Link to this section Functions

Link to this function

decode(mod, data)

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

decode!(mod, data)

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

enum_field(mod, name, acc, data)

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

field(mod, data)

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

field(type, name, acc, data)

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

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

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, arg)

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

oneof_field(name, arg2, arg)

Link to this function

repeated_enum_field(mod, name, acc, data)

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

repeated_field(type, name, acc, data)

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)

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

struct_field(mod, name, acc, data)

struct_field(atom(), atom(), Keyword.t(), binary()) ::
  {Keyword.t(), binary()} | {:error, any()}
Link to this function

varint(bin)

varint(binary()) :: {integer(), binary()}
Link to this function

zigzag(n)

zigzag(integer()) :: integer()