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