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

Method CopyBufferFrom

cpp/src/arrow/c/bridge_test.cc:1399–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397
1398 protected:
1399 Result<std::shared_ptr<Buffer>> CopyBufferFrom(
1400 const std::shared_ptr<Buffer>& buf,
1401 const std::shared_ptr<MemoryManager>& from) override {
1402 return CopyNonOwnedFrom(*buf, from);
1403 }
1404 Result<std::unique_ptr<Buffer>> CopyNonOwnedFrom(
1405 const Buffer& buf, const std::shared_ptr<MemoryManager>& from) override {
1406 if (!from->is_cpu()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected