commit | 7660d683f188d208f2c3c28eb5bf22988eb28d63 | [log] [tgz] |
---|---|---|
author | Scott James Remnant <keybuk@google.com> | Wed Mar 16 19:27:57 2022 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 18 17:20:25 2022 +0000 |
tree | f8808e69092e74aef4fe75f5a68d9ee2c6c31c34 | |
parent | 748f9021f807dc867168bae3be8db2b0c3adc5e4 [diff] |
pw_protobuf: Add codegen for typed StreamDecoder::Field() Since the codegen StreamDecoder knows what type its Fields enum is, add a Field() accessor that converts FieldNumber() into the correct type. Change-Id: I5b889b6a61455984f14a5e4d9b97e1278ad2995e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/88407 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Scott James Remnant <keybuk@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/