libopenraw
|
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 |
virtual int | close () override |
virtual int | seek (off_t offset, int whence) override |
virtual int | read (void *buf, size_t count) override |
virtual off_t | filesize () override |
![]() | |
Stream (const char *filename) | |
Error | get_error () |
const std::string & | get_path () const |
uint8_t | readByte () noexcept(false) |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< Stream > | Ptr |
typedef ::or_error | Error |
![]() | |
void | set_error (Error error) |
cloned stream. Allow reading from a different offset
Definition at line 36 of file streamclone.hpp.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
read in the file. Semantics are similar to POSIX read()
Implements OpenRaw::IO::Stream.
Definition at line 83 of file streamclone.cpp.
|
overridevirtual |
seek in the file. Semantics are similar to POSIX lseek()
Implements OpenRaw::IO::Stream.
Definition at line 68 of file streamclone.cpp.