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

Method Allocate

cpp/src/arrow/compute/kernel.cc:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46// KernelContext
47
48Result<std::shared_ptr<ResizableBuffer>> KernelContext::Allocate(int64_t nbytes) {
49 return AllocateResizableBuffer(nbytes, exec_ctx_->memory_pool());
50}
51
52Result<std::shared_ptr<ResizableBuffer>> KernelContext::AllocateBitmap(int64_t num_bits) {
53 const int64_t nbytes = bit_util::BytesForBits(num_bits);

Callers 15

AllocateBufferMethod · 0.45
operator newMethod · 0.45
ExecNoPreallocatedDataFunction · 0.45
AllocateDataBufferFunction · 0.45
ExecMethod · 0.45
CallMethod · 0.45
FinalizeMethod · 0.45
ClipValuesFunction · 0.45
ExecMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45

Calls 2

AllocateResizableBufferFunction · 0.85
memory_poolMethod · 0.45

Tested by 2

AllocateBufferMethod · 0.36
ExecNoPreallocatedDataFunction · 0.36