MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

python/pyarrow/src/arrow/python/io.cc:352–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350 }
351
352 Result<std::shared_ptr<Buffer>> operator()(const std::shared_ptr<Buffer>& src) {
353 return SafeCallIntoPython([=]() -> Result<std::shared_ptr<Buffer>> {
354 std::shared_ptr<Buffer> dest;
355 cb_(arg_->obj(), src, &dest);
356 RETURN_NOT_OK(CheckPyError());
357 return dest;
358 });
359 }
360
361 protected:
362 // Need to wrap OwnedRefNoGIL because std::function needs the callable

Callers

nothing calls this directly

Calls 2

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85

Tested by

no test coverage detected