Lines Matching refs:memory
135 std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align));
136 buffer->data.push_back(memory);
142 auto memory = std::shared_ptr<Memory>(new Memory(capacity, std::shared_ptr<uint8_t>(data, [](void* ptr) {})));
143 memory->size = size;
144 this->data.push_back(memory);
145 return memory;
150 auto memory = std::shared_ptr<Memory>(new Memory(capacity, data));
151 memory->size = size;
152 this->data.push_back(memory);
153 return memory;
159 std::shared_ptr<Memory> memory = nullptr;
162 memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align));
168 if (memory == nullptr) {
171 data.push_back(memory);
172 return memory;