Print

Print


Hello,

For my application, I have written [a simple class](https://gist.github.com/petrmanek/2f4196a6dd5f1c0187cbeb0a0529fbc2) for buffered reading compatible with `std::istream` using `XrdCl`. It can be used like this:

```
#include <istream>
XRdInputStreamBuf buf("root://..../my_file.txt");
std::istream input(&buf);
// Handle 'input' as if it were std::ifstream or std::sstream.
```

I'm creating this thread because I thought somebody else might benefit from it too. My code can be generalized to work as convenient part of the library, and to buffer not only reads, but writes as well.


Cheers,
Petr.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/412

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1