pw_multibuf: Store per-chunk memory context This CL changes the memory context from being stored one per multibuf to on each chunk. This allows greater flexibility for adding and removing chunks. For example, multiple unique and shared pointers from different allocators can now be added. Notably, owned regions can now be split by having them be converted to shared regions. Change-Id: I06b2ef4c731a3849a699bd9cca76b33c9d3fe425 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/332093 Docs-Not-Needed: Aaron Green <aarongreen@google.com> Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Copybara-Verified: Copybara Prod <copybara-worker-blackhole@google.com> Pigweed-Auto-Submit: Aaron Green <aarongreen@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/.