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

Method TempVectorHolder

cpp/src/arrow/compute/util_internal.h:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 ~TempVectorHolder() { stack_->release(id_, num_elements_ * sizeof(T)); }
80 T* mutable_data() { return reinterpret_cast<T*>(data_); }
81 TempVectorHolder(TempVectorStack* stack, uint32_t num_elements) {
82 stack_ = stack;
83 num_elements_ = num_elements;
84 stack_->alloc(num_elements * sizeof(T), &data_, &id_);
85 }
86
87 private:
88 TempVectorStack* stack_;

Callers

nothing calls this directly

Calls 1

allocMethod · 0.80

Tested by

no test coverage detected