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

Function SetBufferBase

python/pyarrow/src/arrow/python/arrow_to_pandas.cc:264–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264Status SetBufferBase(PyArrayObject* arr, const std::shared_ptr<Buffer>& buffer) {
265 PyObject* base;
266 RETURN_NOT_OK(CapsulizeBuffer(buffer, &base));
267 return SetNdarrayBase(arr, base);
268}
269
270inline void set_numpy_metadata(int type, const DataType* datatype, PyArray_Descr* out) {
271 auto metadata =

Callers 1

PyArray_NewFromPoolFunction · 0.85

Calls 2

CapsulizeBufferFunction · 0.85
SetNdarrayBaseFunction · 0.85

Tested by

no test coverage detected