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);