| 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 |
nothing calls this directly
no test coverage detected