commit | 2262ec0a0be4690149f254526226704fb6e3c666 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Tue Apr 02 00:18:45 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 02 00:18:45 2024 +0000 |
tree | 190e6337645f1777d3926e661bd82f1981d74c1f | |
parent | f6d9544b2895948992d0a9213941858db14d5e4b [diff] |
pw_allocator: Remove Layout from Deallocate and Resize The `Layout` parameter has found not to be needed for all the allocators provided by the pw_allocator module. Either they store layout data inline, or can infer it from fixed sizes. Removing the `Layout` parameters also has benefits, including allowing `Delete` to work with non-final types, and freeing `UniquePtr` from needing to carry a `Layout` with it. As a result of this change, the `GetRequestedLayout`, `GetUsableLayout`, `GetAllocatedLayout`, and `Query` methods are no longer needed as part of the public API. They have been converted into static, protected methods to restrict them to only being called by any derived object. Change-Id: I7b7e7b19e44d2d6238030e0aef72c06d64153d33 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/198153 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Aaron Green <aarongreen@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.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/.