23 #ifndef OR_INTERNALS_IO_STREAMCLONE_H_
24 #define OR_INTERNALS_IO_STREAMCLONE_H_
27 #include <sys/types.h>
56 virtual int close()
override;
58 virtual int seek(off_t offset,
int whence)
override;
60 virtual int read(
void *buf,
size_t count)
override;
cloned stream. Allow reading from a different offset
virtual Error open() override
open the file
virtual int read(void *buf, size_t count) override
read in the file. Semantics are similar to POSIX read()
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()
StreamClone(const Stream::Ptr &clone, off_t offset)
virtual off_t filesize() override
Return the filesize.
base virtual class for IO
std::shared_ptr< Stream > Ptr
or_error
Error codes returned by libopenraw.
Global namespace for libopenraw.