Protobuf.Wire (protobuf v0.8.0) View Source
Utilities to convert data from wire format to protobuf and back.
Link to this section Summary
Link to this section Types
Specs
proto_float() :: :infinity | :negative_infinity | :nan | float()
Specs
proto_type() ::
:int32
| :int64
| :fixed32
| :fixed64
| :uint32
| :uint64
| :sfixed32
| :sfixed64
| :sint32
| :sint64
| :float
| :double
| :bool
| :string
| :bytes
| {:enum, any()}
Specs
proto_value() :: binary() | integer() | boolean() | proto_float() | atom()
Link to this section Functions
Specs
from_proto(proto_type(), proto_value()) :: iodata()
Specs
to_proto(proto_type(), binary() | integer()) :: proto_value()