25 #include <sys/types.h>
27 #include <libopenraw/consts.h>
29 #include "io/stream.hpp"
58 virtual int close()
override;
60 virtual int seek(off_t offset,
int whence)
override;
62 virtual int read(
void *buf,
size_t count)
override;
70 const uint8_t* m_current;
Memory based stream to read memory like a file IO.
virtual int close() override
close the file
virtual off_t filesize() override
Return the filesize.
virtual int read(void *buf, size_t count) override
read in the file. Semantics are similar to POSIX read()
virtual or_error open() override
open the file
MemStream(const uint8_t *ptr, size_t s)
Construct a new memory base stream.
virtual int seek(off_t offset, int whence) override
seek in the file. Semantics are similar to POSIX lseek()
base virtual class for IO
or_error
Error codes returned by libopenraw.
Global namespace for libopenraw.