20#include "pw_allocator/allocator.h"
21#include "pw_allocator/block/tiny_block.h"
22#include "pw_allocator/first_fit.h"
23#include "pw_allocator/layout.h"
25#include "pw_bytes/span.h"
26#include "pw_containers/storage.h"
27#include "pw_multibuf/v1_adapter/chunk.h"
28#include "pw_multibuf/v1_adapter/internal/chunk_allocator.h"
29#include "pw_multibuf/v2/internal/entry.h"
31namespace pw::multibuf::v1_adapter {
43 : metadata_allocator_(metadata_buffer_),
44 allocator_(region, metadata_allocator_) {}
47 std::optional<OwnedChunk>
GetChunk(
size_t size) {
48 return allocator_.AllocateChunk(size);
55 std::array<std::byte, kBufSize> metadata_buffer_{};
59 internal::SingleChunkAllocator allocator_;
Definition: first_fit.h:41
Definition: single_chunk_region_tracker.h:40
std::optional< OwnedChunk > GetChunk(size_t size)
Definition: single_chunk_region_tracker.h:47