MCPcopy Create free account
hub / github.com/apache/arrow / CopyNonOwnedTo

Method CopyNonOwnedTo

cpp/src/arrow/buffer_test.cc:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172Result<std::unique_ptr<Buffer>> MyMemoryManager::CopyNonOwnedTo(
173 const Buffer& buf, const std::shared_ptr<MemoryManager>& to) {
174 if (!allow_copy()) {
175 return nullptr;
176 }
177 if (to->is_cpu() && buf.parent()) {
178 // MyDevice to CPU
179 return MemoryManager::CopyNonOwned(*buf.parent(), to);
180 }
181 return nullptr;
182}
183
184Result<std::shared_ptr<Buffer>> MyMemoryManager::ViewBufferFrom(
185 const std::shared_ptr<Buffer>& buf, const std::shared_ptr<MemoryManager>& from) {

Callers

nothing calls this directly

Calls 1

parentMethod · 0.45

Tested by

no test coverage detected