Struct PyCallbackIOReader

struct PyCallbackIOReader : public IOReader

Public Functions

explicit PyCallbackIOReader(PyObject *callback, size_t bs = 1024 * 1024)

Callback: Python function that takes a size and returns a bytes object with the resulting read

size_t operator()(void *ptrv, size_t size, size_t nitems) override
~PyCallbackIOReader() override

Public Members

PyObject *callback
size_t bs