Pbuf.Encoder (pbuf v0.1.16)

Link to this section Summary

Link to this section Functions

Link to this function

enum_field(mod, val, prefix)

Specs

enum_field(module(), any(), binary()) :: iodata()

Specs

field(atom(), any()) :: iodata()

Encodes a value

Link to this function

field(arg1, val, prefix)

Specs

field(atom(), any(), binary()) :: iodata()

Encodes a field. This means we encode the prefix + the value. We also do type checking and, omit any nil / default values.

Link to this function

map_field(kprefix, ktype, vprefix, vtype, map, prefix)

Specs

map_field(binary(), atom(), binary(), atom(), any(), binary()) :: iodata()
Link to this function

oneof_field(choice, atom, fun)

Link to this function

oneof_field(choice, value, arg3, fun)

Link to this function

prefix(tag, type)

Specs

prefix(pos_integer(), atom()) :: binary()

Generates a field prefix. This is the tag number + wire type

Link to this function

repeated_enum_field(mod, vals, prefix)

Specs

repeated_enum_field(module(), any(), binary()) :: iodata()
Link to this function

repeated_field(type, enum, prefix)

Specs

repeated_field(atom(), any(), binary()) :: iodata()
Link to this function

repeated_unpacked_field(type, enum, prefix)

Specs

varint(integer()) :: iodata()
Link to this function

wire_type(arg1)

Specs

wire_type(atom()) :: integer()

Specs

zigzag(integer()) :: integer()