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

Function SetNdarrayBase

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

Source from the content-addressed store, hash-verified

253}
254
255Status SetNdarrayBase(PyArrayObject* arr, PyObject* base) {
256 if (PyArray_SetBaseObject(arr, base) == -1) {
257 // Error occurred, trust that SetBaseObject sets the error state
258 Py_XDECREF(base);
259 RETURN_IF_PYERROR();
260 }
261 return Status::OK();
262}
263
264Status SetBufferBase(PyArrayObject* arr, const std::shared_ptr<Buffer>& buffer) {
265 PyObject* base;

Callers 2

SetBufferBaseFunction · 0.85
MakeNumPyViewFunction · 0.85

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected