16#include "pw_allocator/block_allocator.h"
18namespace pw::allocator {
29template <
typename OffsetType = uintptr_t,
30 size_t kPoisonInterval = 0,
31 size_t kAlign =
alignof(OffsetType)>
51 BlockType* ChooseBlock(
Layout layout)
override {
53 for (
auto* block : Base::rblocks()) {
54 if (BlockType::AllocLast(block, layout).ok()) {
Definition: block_allocator.h:79
Definition: last_fit_block_allocator.h:33
constexpr LastFitBlockAllocator()
Constexpr constructor. Callers must explicitly call Init.
Definition: last_fit_block_allocator.h:39
LastFitBlockAllocator(ByteSpan region)
Definition: last_fit_block_allocator.h:47