[riot-notifications] [RIOT-OS/RIOT] memarray: Add functions to extend and reduce the pool with new memory areas (#15683)
notifications at github.com
Fri Jan 15 11:34:26 CET 2021
> What use cases do you have for these new functions?
This enables users to create multiple memarray allocators feeding from a larger memarray. This adds a bit of flexibility in that the user doesn't always have to allocate max sized blocks anymore, but can use these smaller block sized allocators. It could even be used to create a rough malloc implementation by having a set of power of 2 block allocators and always allocating a block of the smallest power of 2 bytes still able to fit the requested size.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications