|
DP3
|
Input buffer for a blob using an istream. More...
#include <BlobIBufStream.h>
Public Member Functions | |
| BlobIBufStream (std::istream &) | |
| Construct it with the underlying istream object. More... | |
| virtual | ~BlobIBufStream () |
| Destructor. More... | |
| virtual uint64_t | get (void *buffer, uint64_t nbytes) |
| Get the requested nr of bytes. More... | |
| virtual int64_t | setPos (int64_t pos) |
| virtual int64_t | tellPos () const |
Public Member Functions inherited from dp3::blob::BlobIBuffer | |
| BlobIBuffer () | |
| Constructor. More... | |
| virtual | ~BlobIBuffer () |
| Destructor. More... | |
Input buffer for a blob using an istream.
This class is the BlobIBuffer that makes use of an istream object. The istream can be any type (ifstream, istringstream, ...). It can, for instance, be used to read from a file or a socket.
|
explicit |
Construct it with the underlying istream object.
|
virtual |
Destructor.
|
virtual |
Get the requested nr of bytes.
Implements dp3::blob::BlobIBuffer.
|
virtual |
Set the position in the stream. It returns the new position which is -1 if the stream is not seekable.
Implements dp3::blob::BlobIBuffer.
|
virtual |
Get the position in the stream. -1 is returned if the stream is not seekable.
Implements dp3::blob::BlobIBuffer.