commit | 1425cfb38a13dc1e3a01adfffee2565bc5e9b83a | [log] [tgz] |
---|---|---|
author | Scott James Remnant <keybuk@google.com> | Tue Mar 22 17:24:44 2022 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 24 23:20:35 2022 +0000 |
tree | 7e741c113c6fe38de9895a940ea994ac08ac3727 | |
parent | 0bae3eda13ccf79d977ceb1af5bb7e7aadde0181 [diff] |
pw_protobuf: Refactor field parsing Refactor the field parsing of individual and packed fixed and varint fields to take the same basic approach, with a consistent internal API. Internal ReadFixedField, ReadVarintField, ReadPackedFixedField, and ReadPackedVarintField methods now consistently output into the passed span of bytes. This provides a better foundation API for future decoding extensions. Change-Id: I8306677a8639acca7525dcaf75d786cf2edd3ed8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/88860 Pigweed-Auto-Submit: Scott James Remnant <keybuk@google.com> Reviewed-by: Keir Mierle <keir@google.com> Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.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/