commit | bcefd36f925ab6568c6892b62e3cdd5b9b450abd | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Nov 17 11:12:24 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 23 16:52:31 2021 +0000 |
tree | 33afbe4235511ffd84b61d55e1761e9fedecefd5 | |
parent | 961706bcab3ef675301c4f39970cef454c03251e [diff] |
pw_stream: MemoryWriter clear() function - Add a clear() function to MemoryWriter. - Add begin()/end(), operator[], and size() to MemoryWriter so it can be used similarly to std::span or std::array. Previously, MemoryWriter partially looked like a container (with data() and bytes_written()), but required a WrittenData() call to access the data. With the addition of clear(), MemoryWriter looked even more like a container. Change-Id: Ie066adbd8c3fa9e216ae867331e8eeec7f9f978a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/70200 Commit-Queue: Wyatt Hepler <hepler@google.com> Reviewed-by: Armando Montanez <amontanez@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/