|
libopenraw
0.3.7
|
cloned stream. Allow reading from a different offset More...
#include <streamclone.hpp>
Public Member Functions | |
| StreamClone (const Stream::Ptr &clone, off_t offset) | |
| StreamClone (const StreamClone &f)=delete | |
| StreamClone & | operator= (const StreamClone &)=delete |
| virtual Error | open () override |
| open the file | |
| virtual int | close () override |
| close the file | |
| virtual int | seek (off_t offset, int whence) override |
| seek in the file. Semantics are similar to POSIX lseek() | |
| virtual int | read (void *buf, size_t count) override |
| read in the file. Semantics are similar to POSIX read() | |
| virtual off_t | filesize () override |
| Return the filesize. | |
Public Member Functions inherited from OpenRaw::IO::Stream | |
| Stream (const char *filename) | |
| Construct the stream. More... | |
| Stream (const Stream &f)=delete | |
| Stream & | operator= (const Stream &)=delete |
| Error | get_error () const |
| Obtain the last error. | |
| const std::string & | get_path () const |
| Get the uri path of the file. | |
| uint8_t | readByte () noexcept(false) |
| Read a single byte. | |
Additional Inherited Members | |
Public Types inherited from OpenRaw::IO::Stream | |
| typedef std::shared_ptr< Stream > | Ptr |
| typedef ::or_error | Error |
| Error type. More... | |
Protected Member Functions inherited from OpenRaw::IO::Stream | |
| void | set_error (Error error) |
| Set the error. This is calld by implementations. | |
cloned stream. Allow reading from a different offset
Definition at line 39 of file streamclone.hpp.
| OpenRaw::IO::StreamClone::StreamClone | ( | const Stream::Ptr & | clone, |
| off_t | offset | ||
| ) |
Construct a new clone streamed
| clone | the stream to clone. |
| offset | the offset from the original stream. |
Definition at line 35 of file streamclone.cpp.