Lines Matching refs:allocator
24 offset(0), size(0), allocator(nullptr), addr(std::move(bufData)) in Memory()
28 Memory::Memory(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align, MemoryType type… in Memory() argument
30 size(0), allocator(std::move(allocator)), addr(nullptr) in Memory()
36 if (this->allocator) { in Memory()
37 addr = std::shared_ptr<uint8_t>(static_cast<uint8_t*>(this->allocator->Alloc(allocSize)), in Memory()
38 … [this](uint8_t* ptr) { this->allocator->Free(static_cast<void*>(ptr)); }); in Memory()
132 …r> Buffer::CreateDefaultBuffer(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align) in CreateDefaultBuffer() argument
135 … std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in CreateDefaultBuffer()
156 std::shared_ptr<Memory> Buffer::AllocMemory(std::shared_ptr<Allocator> allocator, size_t capacity, … in AllocMemory() argument
158 auto type = (allocator != nullptr) ? allocator->GetMemoryType() : MemoryType::VIRTUAL_MEMORY; in AllocMemory()
162 memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in AllocMemory()