commit | ee6dbf6430a28ce59251d2928a8a657c607adc97 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Fri Sep 08 22:00:35 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 08 22:00:35 2023 +0000 |
tree | c1910b3373583ce76ea8e8856f0233e4398b2e0b | |
parent | 76892a4afbbb45a8d2573bb09379165645f1ae0d [diff] |
pw_varint: C API updates - Add an output size argument to the C encoding functions, which makes them much easier to use. - Add a macro for calculating the encoded size of an integer in a C constant expression. - Expose incremental versions of the encode/decode function to support in-place encoding and decoding with noncontiguous buffers. - Move more docs content to the code. Change-Id: I832b0ae380e754dd0a067b3522b9f9fbc2ae3c36 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/170050 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@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/.