#include "ipcz/block_allocator_pool.h"
#include "third_party/abseil-cpp/absl/synchronization/mutex.h"
#include "util/log.h"
#include "util/safe_math.h"
namespace ipcz {
BlockAllocatorPool::BlockAllocatorPool() = default;
BlockAllocatorPool::~BlockAllocatorPool() = default;
size_t BlockAllocatorPool::GetCapacity() { … }
bool BlockAllocatorPool::Add(BufferId buffer_id,
absl::Span<uint8_t> buffer_memory,
const BlockAllocator& allocator) { … }
Fragment BlockAllocatorPool::Allocate() { … }
bool BlockAllocatorPool::Free(const Fragment& fragment) { … }
BlockAllocatorPool::Entry::Entry(BufferId buffer_id,
absl::Span<uint8_t> buffer_memory,
const BlockAllocator& allocator)
: … { … }
BlockAllocatorPool::Entry::~Entry() = default;
}