24#include "libopenraw/consts.h"
25#include "libopenraw/io.h"
27#include "io/stream.hpp"
35 m_methods(::get_default_io_methods()),
49 m_ioRef = ::raw_open(m_methods,
get_path().c_str(), O_RDONLY);
50 if (m_ioRef == NULL) {
51 return OR_ERROR_CANT_OPEN;
58 int result = ::raw_close(m_ioRef);
65 return ::raw_seek(m_ioRef, offset, whence);
70 return ::raw_read(m_ioRef, buf, count);
73 off_t File::filesize()
75 return ::raw_filesize(m_ioRef);
virtual int read(void *buf, size_t count) override
virtual Error open() override
File(const char *filename)
virtual int close() override
virtual int seek(off_t offset, int whence) override
Stream(const char *filename)
const std::string & get_path() const
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....