Module table

Source
Expand description

Table-based message encoding and decoding.

Instead of directly implementing message encode and decode, this code implements encoding and decoding by walking a table of field metadata (offsets, field numbers, and function pointers).

This has more compact code generation than the direct implementation.

Modules§

decode
Table-based decoding.
encode
Table-based encoding.

Structs§

TableEncoder
A message encoder/decoder that uses tables associated with the message type.

Traits§

DescribeTable
A table-encoded type that has a protobuf message description.
StructMetadata
Trait for types that can be encoded using TableEncoder.