18#include "pw_allocator/capability.h"
19#include "pw_allocator/layout.h"
20#include "pw_allocator/pool.h"
21#include "pw_bytes/span.h"
22#include "pw_status/status.h"
24namespace pw::allocator {
33 kImplementsGetRequestedLayout | kImplementsGetUsableLayout |
34 kImplementsGetAllocatedLayout | kImplementsGetCapacity |
35 kImplementsRecognizes;
36 static constexpr size_t kMinSize =
sizeof(
void*);
37 static constexpr size_t kMinAlignment =
alignof(
void*);
49 void* DoAllocate()
override;
52 void DoDeallocate(
void* ptr)
override;
55 Result<Layout> DoGetInfo(InfoType info_type,
const void* ptr)
const override;
57 const Layout allocated_layout_;
Definition: capability.h:64
Definition: chunk_pool.h:30
ChunkPool(ByteSpan region, const Layout &layout)