1#include "duckdb/storage/buffer/managed_buffer.hpp"
2#include "duckdb/common/exception.hpp"
3
4using namespace duckdb;
5using namespace std;
6
7ManagedBuffer::ManagedBuffer(BufferManager &manager, idx_t size, bool can_destroy, block_id_t id)
8 : FileBuffer(FileBufferType::MANAGED_BUFFER, size), manager(manager), can_destroy(can_destroy), id(id) {
9 assert(id >= MAXIMUM_BLOCK);
10 assert(size >= Storage::BLOCK_ALLOC_SIZE);
11}
12