pw_varint: Report DataLoss in exceptional conditions Reserve Status::OutOfRange() to only mean that varint::Read() was called at EOF. Once a varint has begun to be decoded, reaching end of file is a more serious data loss error. Change-Id: I671890a82b1d2592326619139750a97201a194a9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/91620 Pigweed-Auto-Submit: Scott James Remnant <keybuk@google.com> Reviewed-by: Keir Mierle <keir@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/