Pbuf.Encoder (pbuf v0.1.19)
Link to this section Summary
Functions
Encodes a value
Encodes a field. This means we encode the prefix + the value. We also do type checking and, omit any nil / default values.
Generates a field prefix. This is the tag number + wire type
Link to this section Functions
Link to this function
enum_field(mod, val, prefix)
Specs
Link to this function
field(atom, n)
Specs
Encodes a value
Link to this function
field(arg1, val, prefix)
Specs
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
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
Link to this function
repeated_field(type, enum, prefix)
Specs
Link to this function
repeated_unpacked_field(type, enum, prefix)
Link to this function
varint(n)
Specs
Link to this function
wire_type(arg1)
Specs
Link to this function