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

Function SetBufferBase

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

Source from the content-addressed store, hash-verified

251}
252
253Status SetBufferBase(PyArrayObject* arr, const std::shared_ptr<Buffer>& buffer) {
254 PyObject* base;
255 RETURN_NOT_OK(CapsulizeBuffer(buffer, &base));
256 return SetNdarrayBase(arr, base);
257}
258
259inline void set_numpy_metadata(int type, const DataType* datatype, PyArray_Descr* out) {
260 auto metadata =

Callers 1

PyArray_NewFromPoolFunction · 0.85

Calls 2

CapsulizeBufferFunction · 0.85
SetNdarrayBaseFunction · 0.85

Tested by

no test coverage detected