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::blocks()) {
54 block->CrashIfInvalid();
55 if (BlockType::AllocFirst(block, layout).ok()) {
Definition: block_allocator.h:79
Definition: first_fit_block_allocator.h:33
FirstFitBlockAllocator(ByteSpan region)
Definition: first_fit_block_allocator.h:47
constexpr FirstFitBlockAllocator()
Constexpr constructor. Callers must explicitly call Init.
Definition: first_fit_block_allocator.h:39