5
Design
Max FERGER edited this page 2024-02-22 10:42:58 +01:00

Design of protobuf-c

The overall goal is to keep the code-generator as simple as possible. Hopefully, performance isn't sacrificed to that end!

Anyway, we [generate](Generated Code) very little code: we mostly generate structure definitions (for example enums and structures for messages) and some metadata, which is basically reflection-type data.

The serializing and deserializing is implemented in [a library](The protobuf c Library), called libprotobuf-c rather than generated code.