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

Method AllocateBuffer

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

Source from the content-addressed store, hash-verified

1380 : CPUMemoryManager(device, default_memory_pool()) {}
1381
1382 Result<std::unique_ptr<Buffer>> AllocateBuffer(int64_t size) override {
1383 uint8_t* data;
1384 RETURN_NOT_OK(pool_->Allocate(size, &data));
1385 return std::make_unique<MyBuffer>(data, size, shared_from_this());
1386 }
1387
1388 Result<std::shared_ptr<Device::SyncEvent>> MakeDeviceSyncEvent() override {
1389 return std::make_shared<MyDevice::MySyncEvent>(const_cast<void*>(kMyEventPtr),

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected