| 374 | } |
| 375 | |
| 376 | std::shared_ptr<StreamWrapFunc> MakeStreamTransformFunc(TransformInputStreamVTable vtable, |
| 377 | PyObject* handler) { |
| 378 | TransformInputStream::TransformFunc transform( |
| 379 | TransformFunctionWrapper{std::move(vtable.transform), handler}); |
| 380 | StreamWrapFunc func = [transform](std::shared_ptr<::arrow::io::InputStream> wrapped) { |
| 381 | return std::make_shared<TransformInputStream>(wrapped, transform); |
| 382 | }; |
| 383 | return std::make_shared<StreamWrapFunc>(func); |
| 384 | } |
| 385 | |
| 386 | } // namespace py |
| 387 | } // namespace arrow |
nothing calls this directly
no outgoing calls
no test coverage detected